mysql_connect question
#5

Quote:
Originally Posted by DeathOnaStick
Посмотреть сообщение
<bump>
Does nobody have any ideas?
Also it seems that if i am really connected, mysql_num_rows never returns 0 in this code:

pawn Код:
format(query, sizeof(query), "SELECT * FROM `table` WHERE `bla` = '%s'", blubb);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows()!=0)
{        
   //Is always called, when not connected to the internet. Works properly when i am connected.
}
There's a reason for that, if you're not connected than the query will return 0, therefore storeresult will not work.
Reply


Messages In This Thread
<Unsolved> mysql_connect question - by DeathOnaStick - 22.07.2010, 09:31
Re: mysql_connect question - by ettans - 22.07.2010, 09:33
Re: mysql_connect question - by DeathOnaStick - 22.07.2010, 09:38
Re: mysql_connect question - by DeathOnaStick - 22.07.2010, 18:56
Re: mysql_connect question - by Carlton - 22.07.2010, 19:00
Re: mysql_connect question - by DeathOnaStick - 22.07.2010, 19:06

Forum Jump:


Users browsing this thread: 1 Guest(s)