MySQL & PHP Parameter 1 as Resource

后端 未结 3 1579
北荒
北荒 2020-12-02 02:22

Alright, PHP is throwing this error at me (in the log) when I run the code mentioned below:

Error

mysql_num_rows() expects pa

3条回答
  •  难免孤独
    2020-12-02 03:00

    You need to query the database first.

    $queryFP = ("SELECT * FROM db");
    

    Should be:

    $queryFP = mysql_query("SELECT * FROM db");
    

提交回复
热议问题