SQL results.
#9

Here is an easier query than all of the above answers:

pawn Код:
format(sqlquery,sizeof(sqlquery),"SELECT Fines FROM Accounts WHERE Username='%s'",NameEntered);
mysql_query(sqlquery);
mysql_store_result();
new PFines = mysql_fetch_int();
mysql_free_result(); //Always have mysql_free_result() after a mysql_store_result().
I hope that is easier for you to understand.
Reply


Messages In This Thread
SQL results. - by iGetty - 07.06.2012, 02:19
Re: SQL results. - by Kitten - 07.06.2012, 02:22
Re: SQL results. - by iGetty - 07.06.2012, 02:24
Re: SQL results. - by mati233 - 07.06.2012, 02:27
Re: SQL results. - by Lorenc_ - 07.06.2012, 02:29
Re: SQL results. - by iGetty - 07.06.2012, 02:30
AW: SQL results. - by Extremo - 07.06.2012, 02:40
Re: SQL results. - by kikito - 07.06.2012, 10:35
Re: SQL results. - by Pizzy - 10.06.2012, 15:39

Forum Jump:


Users browsing this thread: 2 Guest(s)