Reply to Re: Parse error!

Your name:

Reply:


Posted by mfrey on 07/13/05 13:37

check the code part where you use

echo "<tr><th id="t1">Region</th>
^
this ends the string, which is not desired i think
better use ' singel quotes when echoing a lot of html tags with double
quotes

cy matthias


Luigi Donatello Asero wrote:
> I get a parse error for the following code.
> I only changed the connection data.
> The page which display the error is
> https://www.scaiecat-spa-gigi.com/sv/test20.php
> I tried to use <th id> and <td headers> instead of <th> and <td>.
> Besides I tried to add "summary" into the table compared with
> https://www.scaiecat-spa-gigi.com/sv/test21.php which works, instead.
>
> <html> <body>
> <?php $db = mysql_connect("local host", "user", "password");
> mysql_select_db("scaiecat_?", $db);
> $result = mysql_query("SELECT * FROM semesterbostäder", $db) or
> die(mysql_error());
> echo "<table summary=semesterbostäder, border=1>\n";
> echo "<tr><th id="t1">Region</th>
> <th id="t2">Ort</th><th id="t3">Sovplatser</th><th id="t4">Rum</th>
> <th id="t5">Avstånd till havet i km</th><th id="t6">Terrass</th></tr>\n";
> while ($mycolumn=mysql_fetch_array ($result))
> { printf("<tr><td headers="t1">%s</td>
> <td headers="t2">%s</td>
> <td headers="t3">%s</td>
> <td headers="t4">%s</td>
> <td headers="t5">%s</td>
> <td headers="t6">%s</td></tr>\n",
> $mycolumn['Region'], $mycolumn['Ort'], $mycolumn['Sovplatser'],
> $mycolumn['Rum'],$mycolumn['Avstånd till havet i km'],$mycolumn['Terrass']);
> }
> echo "</table>\n"; ?>
> </body>
> </html>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация