Ответов: 4 Просмотров: 2082
|
Privet, mojete pamoc, sto nado zdelat, problema gde???
<?php
$result = mysql_query ("SELECT id,title,date,description,author FROM courses",$db); 58
$myrow = mysql_fetch_array ($result); 59
do {
printf (
"<table width='95%' align='center' class='course'>
<tr>
<td class='course_title'><p> %$</p><p>Date posted: %$</p><p>The author of the course: %$</p></td>
</tr>
<tr>
<td> </td>
</tr>
</table><br><br>", $myrow['title'], $myrow['date'], $myrow['author']); 73
}
while ( $myrow = mysql_fetch_array ($result) ) ; 77
?>
Warning: mysql_query() expects parameter 2 to be resource, null given in C:\home\localhost\www\web_site_php\courses.php on line 58
Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in C:\home\localhost\www\web_site_php\courses.php on line 59
Warning: printf() [function.printf]: Argument number must be greater than zero in C:\home\localhost\www\web_site_php\courses.php on line 73
Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in C:\home\localhost\www\web_site_php\courses.php on line 77 |