Reply to Warning: printf(): Too few arguments in /home/s/scaiecat/www/sv/test21.php on line 27

Your name:

Reply:


Posted by Luigi Donatello Asero on 10/13/64 11:22

Hi!
As questions about mysql seem to be generally accepted (see the answer which
I got in the other thread)
I am asking the following question.
I get this Warning:
Warning: printf(): Too few arguments in /home/s/scaiecat/www/sv/test21.php
on line 27
Why do I get it?
The code follows ( I changed password, user and the like in the connection
code)


<?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>
<th id='t7'>Lgenhetsnummer</th>
<th id='t8'>URL</th>
<th id='t9'>Lnkar</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>
<td headers='t7'>%s</td>
<td headers='t8'>%s</td>
<td headers='t9'><a href='%s'>%s</a></td>
</tr>\n",
$mycolumn['Region'], $mycolumn['Ort'], $mycolumn['Sovplatser'],
$mycolumn['Rum'],$mycolumn['Avstnd till havet i km'],
$mycolumn['Terrass'],$mycolumn['Lgenhetsnummer'],
$mycolumn['URL'],
$mycolumn['Lnkar']);
}
echo "</table>\n";?>

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

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