PHP - Undefined variable

后端 未结 9 745
星月不相逢
星月不相逢 2021-01-26 05:29

I\'m doing some exercises from Beginners PHP & MySQL by Mr. Tucker.

On his example everything works fine, but on my PC there is an error:

9条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-26 05:51

    Do a check using mysql_num_rows($result) to make sure you actually got something.

提交回复
热议问题