Quantcast
Channel: انجمنهای مجید آنلاین
Viewing all articles
Browse latest Browse all 23756

این پیغام خطا به چه معناست؟

$
0
0
با سلام
این قطعه کد من است که 5 رکورد آخر جدول را سلکت می کنه که درست جواب می ده اما همرا با هاش این پیغام خطا را می ده .

Warning
: mysql_result() [function.mysql-result]: Unable to jump to row 5
on MySQL result index 5 in

C:\Users\elham\Desktop\Session_05\cms20\showpost.p hp on line
17
PHP Code:
 $natije = mysql_query('SELECT * FROM posts ORDER BY title DESC LIMIT 0,5');
for ($i=0; $i<=5;$i++)
 {
      $id=mysql_result($natije,$i, 'id');
     $post=mysql_result($natije,$i,'title');
    echo "<a href='showpost.php?id=$id'>$post</a><br/>";

Viewing all articles
Browse latest Browse all 23756

Trending Articles