Raised This Month: $ Target: $400
 0% 

Reading flags from MYSQL database


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
devWaleed
Member
Join Date: Apr 2013
Location: Karachi, Pakistan
Old 08-17-2014 , 06:51   Reading flags from MYSQL database
Reply With Quote #1

PHP Code:
public SELECT_Handler(FailStateHandle:QueryError[], ErrcodeData[], DataSize){
    
    if(
FailState == TQUERY_CONNECT_FAILED){
        return 
set_fail_state("Couldn't connect to DB");        
    }else if(
FailState == TQUERY_QUERY_FAILED){
        return 
set_fail_state("Query failed");
    }    
    
    
//num     =    SQL_NumResults(Query);    
    
if(SQL_NumResults(Query) == 1){
        
num SQL_ReadResult(Query2);
                
client_print(0print_chat"Flag is %s"num);
    }
    return 
PLUGIN_CONTINUE;

Problem here is it is not printing what flags I have in MYSQL database.

On line 12: It prints "Flag is " and doesn't prints flags.

Database structure:
http://i.minus.com/ibpeuIuxaT1jGf.png
__________________
Steam: Waleedbaig2013
devWaleed is offline
Send a message via Skype™ to devWaleed
 



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 12:57.


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