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
#2

Try using mysql_num_rows instead of mysql_retrieve_row.
Reply
#3

what ?
i did not understand
You can just fix my code?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)