Raised This Month: $ Target: $400
 0% 

Could someone correct this small plugin?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-06-2009 , 04:05   Re: Could someone correct this small plugin?
Reply With Quote #7

Quote:
How would you apply a query?
PHP Code:
new Handle:hQuerySelect SQL_PrepareQuery g_hSqlCon"SELECT `password` FROM `admins` WHERE `auth` = 'Radiance'" )
SQL_Execute hQuerySelect )

new 
szPassword 32 ]

while ( 
SQL_MoreResults hQuerySelect ) )
{
    
SQL_ReadResult hQuerySelect0szPasswordsizeof szPassword ) - )
    
SQL_FreeHandle hQuerySelect )

    break
}

if ( !
strlen szPassword ) )
}
    
// ..no result returned..
}

// ..result returned in variable szPassword.. 

Last edited by TheRadiance; 04-06-2009 at 05:02.
TheRadiance is offline
Send a message via ICQ to TheRadiance
 



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 02:18.


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