MySQL loading problem
#3

I've seen someone who had a similar problem yesterday. Here's the quote of the solution:
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.
Could this be the problem and solution? Otherwise I have no idea
Reply


Messages In This Thread
MySQL loading problem - by dusk - 10.05.2013, 10:31
Re: MySQL loading problem - by [HiC]TheKiller - 10.05.2013, 10:47
Re: MySQL loading problem - by Kwarde - 10.05.2013, 10:48
Re: MySQL loading problem - by dusk - 10.05.2013, 11:08
Re: MySQL loading problem - by Kwarde - 10.05.2013, 11:10
Re: MySQL loading problem - by dusk - 10.05.2013, 11:28
Re: MySQL loading problem - by Kwarde - 10.05.2013, 11:39
Re: MySQL loading problem - by dusk - 10.05.2013, 12:38
Re: MySQL loading problem - by Kwarde - 10.05.2013, 12:44
Re: MySQL loading problem - by dusk - 10.05.2013, 17:05

Forum Jump:


Users browsing this thread: 2 Guest(s)