Check ban table MySQL help
#1

PHP код:
            SendClientMessage(playeridCOLOR_GREEN"NOTICE: You only receive six results at a time. Narrow your search for better results");
            
format(string128"SELECT * FROM bans WHERE name LIKE '%s' LIMIT 6"searchname);
            
mysql_query(string);
            
mysql_store_result();
            while(
mysql_retrieve_row())
            {
                
mysql_get_field("name",searchname);
                
mysql_get_field("admin",admin);
                
mysql_get_field("reason",reason);
                
mysql_get_field("time",time);
                
mysql_get_field("ip",ip);
                
format(string128"NAME: %s - IP: %s - ADMIN: %s - REASON: %s - TIME: %s"searchnameipadminreasontime);
                
SendClientMessage(playeridCOLOR_ADMINCMDstring);
            }
            
mysql_free_result(); 
It doesnt work though when I do it though. I have stuff in the ban table and it doesn't show any results. Thanks.
Reply


Messages In This Thread
Check ban table MySQL help - by s1k - 18.04.2011, 14:02
Re: Check ban table MySQL help - by Vince - 18.04.2011, 15:20
Re: Check ban table MySQL help - by s1k - 18.04.2011, 15:36

Forum Jump:


Users browsing this thread: 1 Guest(s)