Get information from a Table Mysql
#3

It is.

PHP код:
CMD:news(playerid,params[])
    {
        new 
query[MAX_STRING], userstring[MAX_STRING];
        
format(querysizeof(query), "SELECT * FROM News ORDER DESC");
        
mysql_query(query);
        
mysql_store_result();
        while(
mysql_fetch_row(query))
        {
            
format(userstringsizeof(userstring), "%s \n",userstring);
ShowPlayerDialog(playerid,DIALOG_DEALERSHIP,DIALOG_STYLE_LIST,"News",userstring,"Read","Close");
        }
        
ShowPlayerDialog(playerid,DIALOG_DEALERSHIP,DIALOG_STYLE_LIST,"News",userstring,"Read","Close"); 
I think. Haven't scripted in a while.
Reply


Messages In This Thread
Get information from a Table Mysql - by WaZP - 28.07.2015, 23:02
Re: Get information from a Table Mysql - by WaZP - 30.07.2015, 19:22
Re: Get information from a Table Mysql - by BleverCastard - 30.07.2015, 20:02
Re: Get information from a Table Mysql - by WaZP - 31.07.2015, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)