Unable to jump to row 0 on MySQL result index 13

前端 未结 1 1043
南方客
南方客 2021-01-23 04:13

What is the reason of the error on title? I tested mysql query at Mysql Front and no problem. My script is below. Thank you.

$fbFoodPerma = $fbSiteID.\"-\".$fbFo         


        
1条回答
  •  别那么骄傲
    2021-01-23 04:44

    Hmm, try this to see if it is picking up any data at all:

    $sql="SELECT * FROM fbFoods";
    $query = mysql_query($sql) or die ("Could not match data because ".mysql_error());
    $num_rows = mysql_num_rows($query);
    
    if ($num_rows > 0) {
        echo "rows found";
        } else {
        echo "none found";
    }
    

    Also make sure that $fbFoodPerma actually contains something - try echoing it at the end of your query.

    echo $fbFoodPerma;
    

    0 讨论(0)
提交回复
热议问题