|
Posted by Luigi Donatello Asero on 07/13/05 13:28
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 semesterbostder", $db) or
die(mysql_error());
echo "<table summary=semesterbostder, 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">Avstnd 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['Avstnd till havet i km'],$mycolumn['Terrass']);
}
echo "</table>\n"; ?>
</body>
</html>
--
Luigi Donatello (un italiano che vive in Svezia)
https://www.scaiecat-spa-gigi.com/sv/boende-i-italien.php
Navigation:
[Reply to this message]
|