Page 1 of 1
Echo a title for a table
Posted: Tue Nov 21, 2006 12:44 am
by aussie_clint
i got a mysql databas returning a result in a table and im try to do a heading for it, but y will it let me do this?
but not this?
Code: Select all
Echo "<p align="center">Systems</p>";
Posted: Tue Nov 21, 2006 1:19 am
by gunman
Try to escape string like this
Code: Select all
Echo "<p align=\"center\">Systems</p>";
Posted: Tue Nov 21, 2006 2:35 am
by CoderGoblin
Or you could use
Code: Select all
echo '<p align="center">Systems</p>';
With single quotes cannot use \n or variables inside, you have to use concatenation but can make things more readable.
Might be worth noting that you should probably use the <caption> Html Tag within a table rather than a <p> tag. Makes it easier to deal with CSS.