Reply to Mysql_fetch_col()

Your name:

Reply:


Posted by Luigi Donatello Asero on 07/12/05 14:52

Why do I get this error on the page
https://www.scaiecat-spa-gigi.com/sv/test20.php


Fatal error: Call to undefined function: mysql_fetch_col() in
/home/s/scaiecat/www/sv/test20.php on line 7


The code is:


<html> <body>
<?php $db = mysql_connect("local host", "user", "password");
mysql_select_db("scaiecat", $db);
$result = mysql_query("SELECT * FROM name of the table", $db);
echo "<table border=1>\n"; echo "<tr><td>Region</td>
<td>Ort</td><td>Sovplatser</td><td>Rum</td><td>Avstεnd till havet i
km</td><td>Terrass</td></tr>\n";
while ($mycolumn=mysql_fetch_col($result))
{ printf("<tr><td>%s
%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n",
$mycolumn[1], $mycolumn[2], $mycolumn[3]);
}
echo "</table>\n"; ?>
</body>
</html>

--
Luigi Donatello (un italiano che vive in Svezia)
https://www.scaiecat-spa-gigi.com/it/svezia.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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация