السلام عليكم ..
أخواني توجد مشكلة في تنفيذ هذا الكود ممكن تساعدوني ...
تظهر رسالة الخطأ بهذا الشكل
PHP Notice: Undefined variable: numrows in C:\apache\htdocs\counter.php on line 18 PHP Notice: Undefined variable: numrows in C:\apache\htdocs\counter.php on line 20 PHP Notice: Undefined variable: numrows in C:\apache\htdocs\counter.php on line 21
<html>
<head>
<title></title>
</head>
<body>
<?php
$perpage="15";
if(!isset($start)){$start = 0;}
$result = mysql_query("SELECT * FROM comment ORDER BY id DESC LIMIT $start,$perpage");
$page_result = mysql_query("SELECT * FROM comment ORDER BY id DESC");
$previous_page=$start - $perpage;
$next_page=$start + $perpage;
if(($start > 0) || ($numrows > ($start + $perpage))){echo "<p align=center>";}
if($start > 0){echo "<a href=$PHP_SELF?start=$previous_page><<ÇáÓÇÈÞ</a> \n";}
if($numrows > ($start + $perpage)){echo "<a href=$PHP_SELF?start=$next_page>ÇáÊÇáí>></a>\n";}
if(($start > 0) || ($numrows > ($start + $perpage))){echo "</p>";}
?>
</body>
</html>