Login & password check problems
#4

Quote:
Originally Posted by iGetty
Посмотреть сообщение
pawn Код:
format(query, sizeof(query), "SELECT * FROM kasutajad WHERE nimi = '%s' AND parool = '%s' LIMIT 1", pName, inputtext);
                mysql_query(query);

                if(mysql_num_rows() == 1)
You're not storing the result.

After the query, type:

mysql_store_result();

It should then work, since it's getting data from nothing there.
Thanks, it works now!
Reply


Messages In This Thread
Login & password check problems - by Trooja - 09.05.2013, 14:34
Re: Login & password check problems - by Kwarde - 09.05.2013, 15:40
Re: Login & password check problems - by iGetty - 09.05.2013, 16:21
Re: Login & password check problems - by Trooja - 09.05.2013, 16:32
Re: Login & password check problems - by iGetty - 09.05.2013, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)