Код
<?php
$result = mysql_query("SELECT id, title, description, author, date FROM lessons", $db);
$myrow = mysql_fetch_array($result);
do {
printf ("<table align='center' class='lesson'>
<tr>
<td class='lesson_title'><p>%s</p></td>
</tr>
<tr>
<td> </td>
</tr>
</table><br><br>", $myrow['title']);
}
while (mysql_fetch_array($result));
?>
$result = mysql_query("SELECT id, title, description, author, date FROM lessons", $db);
$myrow = mysql_fetch_array($result);
do {
printf ("<table align='center' class='lesson'>
<tr>
<td class='lesson_title'><p>%s</p></td>
</tr>
<tr>
<td> </td>
</tr>
</table><br><br>", $myrow['title']);
}
while (mysql_fetch_array($result));
?>
Подскажите где ошибка???
Спустя 5 минут, 37 секунд (10.04.2008 - 12:28) kolyan.exe написал(а):
Оп. Сори. Протупил.
while ($myrow = mysql_fetch_array($result));
Можно тему закрывать
while ($myrow = mysql_fetch_array($result));
Можно тему закрывать
_____________