Page 1 of 1
Putting PHP echos inside of a table
Posted: Tue Mar 23, 2004 9:18 pm
by Zorth
I had some part of my website that I needed inside of a table to space out. However, when I placed the table flags around the PHP and took a look, it put newlines all over the place, even in the MIDDLE of echos where it would make no sense at all for them to be.
Is there some kind of "bad mixture" between PHP echos and HTML tables?
Posted: Tue Mar 23, 2004 9:31 pm
by Goowe
Can you show the code where the table begins and ends? And also the part where you're echoing inside the table? Thanks

Posted: Wed Mar 24, 2004 4:29 pm
by tim
there is a /bad mixture/ if you will between the two.
for example.
<font face="green" size="12">
if this was within a php body ( the <? and ?> ) it would for sure give an error. to escape it, some people go about it like this
<font face=\"green\" size=\"12\">
or
<font face=green size=12> the " " messes up if not escaped by /'s.
hope this explains it for you, if not, like goowe said, post the code
