| 
	
 | 
 Posted by Luigi Donatello Asero on 07/13/05 13:51 
"mfrey" <mf@tt4.at> skrev i meddelandet 
news:42d4eecf$0$14542$79720d31@newsreader.inode.at... 
> 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 
 
Thats right. 
And it worked. 
But when I tried to add 
echo "<CAPTION>Semesterbostder i Italien</CAPTION>; 
it did not. 
 
See: 
<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 "<CAPTION>Semesterbostder i Italien</CAPTION>; 
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] 
 |