mysql | with MAX function.
#1

hello !

I did so with MAX function:

pawn Код:
new Props;
mysql_query("SELECT MAX(`ID`) FROM `Props`");
mysql_store_result();
if(mysql_retrieve_row()) Props = mysql_fetch_int();
mysql_free_result();
It always returns zero, what's the problem?
Thanks in advance helpers!
Reply


Messages In This Thread
mysql | with MAX function. - by EviLpRo - 14.07.2011, 08:19
Re: mysql | with MAX function. - by Vince - 14.07.2011, 12:06
Re: mysql | with MAX function. - by EviLpRo - 14.07.2011, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)