MySQL retrieve data from column?
#2

Something along these lines:

pawn Код:
mysql_query("SELECT Username, Fines FROM `Accounts` WHERE `Username` = '%s'", NameEntered);
mysql_store_result( );
if( mysql_num_rows( ) )
{
    new Field[ 10 ];
    mysql_fetch_row_format( query, "|" );
    mysql_fetch_field_row( Field, "Fines" );
   
    format(string, sizeof(string), "Fines: %d", strval( Field ) );
    ShowPlayerDialog(playerid, 14214, DIALOG_STYLE_MSGBOX, "MDC Beta", string, "OK", "");
}
mysql_free_result( );
Reply


Messages In This Thread
MySQL retrieve data from column? - by DBan - 05.07.2012, 02:38
Re: MySQL retrieve data from column? - by iGetty - 05.07.2012, 02:45
Re: MySQL retrieve data from column? - by DBan - 05.07.2012, 03:10
Re: MySQL retrieve data from column? - by Sinner - 05.07.2012, 06:44
Re: MySQL retrieve data from column? - by ReneG - 05.07.2012, 09:37

Forum Jump:


Users browsing this thread: 1 Guest(s)