Unable to jump to row 0 on MySQL result index 13

Posted by Ahmet Kemal on Stack Overflow See other posts from Stack Overflow or by Ahmet Kemal
Published on 2010-04-25T16:20:35Z Indexed on 2010/04/25 16:23 UTC
Read the original article Hit count: 262

Filed under:
|
|
|

What is the reason of the error on title? My script is below. Thank you.

$fbFoodPerma = $fbSiteID."-".$fbFoodPerma;
    $sql = mysql_query("
        SELECT fbFoodPerma 
        FROM fbFoods 
        WHERE fbFoodPerma 
        LIKE '$fbFoodPerma'") or die(mysql_error());
    $isStored = mysql_result($sql,0,"fbFoodPerma");
    while ($isStored == "$fbFoodPerma") {
    $fbFoodPerma = $fbFoodPerma."-";
    $sql = mysql_query("
        SELECT fbFoodPerma 
        FROM fbFoods 
        WHERE fbFoodPerma 
        LIKE '$fbFoodPerma'") or die(mysql_error());
        $isStored = mysql_result($sql,0,"fbFoodPerma");
        }

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql