Latest MySQL version problem
#5

Note that cache_num_rows() returns the amount of rows. Which means it will be 0 aka false when there is no account yet. Your if blocks should be turned around:

Код:
if(cache_num_rows()) 
{ 
    // My Login Code 
} 
else 
{ 
    // My Register Code 
}
Reply


Messages In This Thread
Latest MySQL version problem - by Kraeror - 14.01.2018, 09:20
Re: Latest MySQL version problem - by m4karow - 14.01.2018, 09:23
Re: Latest MySQL version problem - by Kraeror - 14.01.2018, 09:45
Re: Latest MySQL version problem - by Dayrion - 14.01.2018, 09:59
Re: Latest MySQL version problem - by Mikro - 14.01.2018, 18:20
Re: Latest MySQL version problem - by denNorske - 14.01.2018, 21:29
Re: Latest MySQL version problem - by Kaperstone - 14.01.2018, 21:50

Forum Jump:


Users browsing this thread: 3 Guest(s)