PHP - Undefined variable

后端 未结 9 759
星月不相逢
星月不相逢 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:49

    That's because your query returned nothing and your

    while ($row = mysql_fetch_array($tUser_SQLselect_Query, MYSQL_ASSOC)) {

    didn't fill

    $passwordRetrieved

    You can disable E_NOTICE notices because it's not something that would hurt

    Or add

    $passwordRetrieved = "";
    

    before your

    while ($row = mysql_fetch_array($tUser_SQLselect_Query, MYSQL_ASSOC)) {
    

提交回复
热议问题