Raised This Month: $ Target: $400
 0% 

help sqlx


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
thallysbar
Junior Member
Join Date: Oct 2007
Old 08-19-2009 , 18:34   help sqlx
Reply With Quote #1

Hello everybody I need more help.
need to make this query on the db
and change the name of the player for what is
recorded in the db.



PHP Code:
public client_connect(id)
{
    new 
name[32]; 
    
get_user_name(idnamesizeof (name));
    new 
Handle:query SQL_PrepareQuery(g_sql"SELECT * FROM `admins` WHERE `name` = '%s'",name); 
    
SQL_Execute(query);
 
    new 
res[32]; 
    if (
SQL_MoreResults(query)) 
    { 
        
SQL_ReadResult(query0ressizeof (res)); 
        
SQL_FreeHandle(query); 
    } 
    if (!
strlen(res)) 
    { 
what I put here????????????????????????    } 
    } 
thallysbar is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode