RE: [PHP-DB] HTML Tables in PHP...

From: Date: Sun, 25 Sep 2005 13:47:35 +0000
Subject: RE: [PHP-DB] HTML Tables in PHP...
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-40355@lists.php.net to get a copy of this message
> 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

« previous php.db (#40355) next »