Page 1 of 1
Syntax Question
Posted: Wed Aug 25, 2004 2:28 pm
by dardsemail
I have some php code to create tables and I'm wondering about the syntax to use in PHP to create the following HTML code:
Code: Select all
<table width="75%" style="height:400px " align="center" border="0" cellspacing="0" cellpadding="0">
I seem to be getting messed up with the % and px values.
Thanks!
Posted: Wed Aug 25, 2004 2:31 pm
by feyd
technically those look fine to me..
Posted: Wed Aug 25, 2004 2:56 pm
by dardsemail
They are fine in the HTML mode, but when embedded in PHP I need to use periods and commas and can't seem to get them to work properly.
For example, I know that within PHP the align="center" would be align = ",center,", but I don't know how to do the numeric values including the % and px.
Posted: Wed Aug 25, 2004 2:58 pm
by Draco_03
I don t understand your question.. But if it's how to write the html line in php
Code: Select all
echo("
<table width="75%" style="height:400px " align="center" border="0" cellspacing="0" cellpadding="0">
");
That would be it..
Posted: Wed Aug 25, 2004 3:03 pm
by feyd
or just:
Code: Select all
echo '<table width="75%" style="height:400px " align="center" border="0" cellspacing="0" cellpadding="0">';
Posted: Wed Aug 25, 2004 7:58 pm
by dardsemail
Boy o boy - didn't realize it was that simple!!! Brilliant! Thanks!