For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > September 2005 > RE: [PHP-DB] HTML Tables in PHP...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-DB] HTML Tables in PHP...
Murray @ PlanetThoughtful

2005-09-25, 6:56 pm

> How can I give a <table> </table> with all of it's parameters in PHP in
> each
> of the cells there is a variable that gives me the data back but I can't
> get
> the table to show as it always gives me either this error "Parse error:
> parse error, unexpected T_LNUMBER, expecting ',' or ';' in
> C:\FoxServ\www\Dad\proofing\index.php on line 41" or this one when I don't
> put in the quotes "Parse error: parse error, unexpected '<', expecting ','
> or ';' in C:\FoxServ\www\Dad\proofing\index.php on line 41".


Hi Daryl,

Put double-quotes around the entire string, and use single-quotes around the
table property values etc. Something similar to:

echo "<table width='694' height='501' border='0' align='center'
cellpadding='0' cellspacing='0'>

<tr>
<td width='100'>Some stuff</td>
</tr>
</table>";

Also, in the code you've posted you don't have a closing double-quote and
semi-colon at the end of:

> $nachricht="The licence doesn't exist please contact us!


This probably should be:

$nachricht="The licence doesn't exist please contact us!";

Much warmth,

Murray
---
"Lost in thought..."
http://www.planetthoughtful.org
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com