Помогите пожалуйста решить проблему. Буду очень благодарен!!!
Warning: printf() [function.printf]: Too few arguments in Z:\home\localhost\www\tem_php\view_article.php on line 34 - выдает ошибку на строку 34
Коннект с базой есть и все нормально
очень надеюсь на вашу помощь.
Заранее спасибо!
<? include ("blocks/db.php");
$result = mysql_query("SELECT * FROM settings_article");
$myrow = mysql_fetch_array($result);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title><? echo $myrow['title']; ?></title>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="page">
<div id="header"><div id="logo"><span class="orange-text">Sport</span>Club</div>
</div>
<div class="menu">
<? include ("blocks/top.php"); ?>
</div>
<div id="content"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><? echo $myrow['text']; ?>
<?php
$result2 = mysql_query("SELECT id,title,date,author,description FROM article",$db);
if (mysql_num_rows ($result2) > 0){
$myrow2 = mysql_fetch_array($result2);
do {
printf (" <table width='100%' border='0'>
<tr class='stat_sb'>
<td height='85' valign='top' class='stat_bord'><p class='stat_title' align='center'><a href='view_article.php?id=%s'>%s</a></p>
<p class='stat_k'>Дата: %s<br>Автор: %s</p></td>
</tr>
<tr>
<td valign='top' class='stat_bord'>Описание:<br>%s</td>
</tr>
</table>", $myrow2["id"], $myrow2["title"], $myrow2["date"], $myrow2["author"], $myrow2["description"] );
}
while ($myrow2 = mysql_fetch_array($result2));
}
else { echo "Не получилось"; }
?>
</tr>
</table>
</div>
<div id="footer">
<? include ("blocks/footer.php"); ?>
</div>
</div>
</body>
</html>
34 строка это
</table>", $myrow2["id"], $myrow2["title"], $myrow2["date"], $myrow2["author"], $myrow2["description"] );