Raised This Month: $ Target: $400
 0% 

amxx 1.7, dbi, mysql 4.1 & advanced sql query problem :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
onosrider
Member
Join Date: Jul 2005
Old 03-18-2006 , 21:49   amxx 1.7, dbi, mysql 4.1 & advanced sql query problem :(
Reply With Quote #1

i use the same code for two plugins to test someting, but i always get errors with longer and more advanced sql querys.

a verry simple one works perfect:
Code:
result = dbi_query(dbc,"SELECT rank FROM my_stats WHERE steamid='%s'",authid)

but this one dosen't:
Code:
result = dbi_query(dbc,"SELECT a.userid, a.rank, b.userid, b.kills, b.onlinetime FROM my_stats AS a, my_stats_2 AS b WHERE a.userid = b.userid AND steamid='%s'",authid)

can anyone tell me why?
__________________

onosrider 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 16:30.


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