Unable to jump to row 0 on MySQL result index 13
- by Ahmet Kemal
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");
}