PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have this login script and it doesnt work ive gone through it and i can't see anything wrong with it can people just look through it and tell me if ive got something wrong.
Seraphimk wrote:thats what i was saying theres a problem with it and i cant find it :/
So are we supposed to look for every possible problem or do you have anything to suggest?
well when i test it, it comes up with login invalid and well im not sure check if the query is right the password in the database isnt encrypted i dunnu wat to look for if i did i wouldnt be in this forum askin you all im askin is for a little help
From this
if ( $num != 0 ) {
to this
if ( $num == 1 ) {
Both the above should technically do the same thing, but just want to make sure that the result is not turning up null instead of 0. If those suggestions do not work, then test your query on your mysql database to ensure the query itself is working.
From this
if ( $num != 0 ) {
to this
if ( $num == 1 ) {
Thanks ill test it when i get back i have to go out now thanks for the help though
and the user_status is need because its a paid membership so when the member has paid his status changes to 5 so they can log in.
Both the above should technically do the same thing, but just want to make sure that the result is not turning up null instead of 0. If those suggestions do not work, then test your query on your mysql database to ensure the query itself is working.