Raised This Month: $ Target: $400
 0% 

dbi_query : variable help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MusicSpeed
New Member
Join Date: Oct 2009
Old 11-02-2009 , 18:04   dbi_query : variable help
Reply With Quote #1

Hi,

I need help on a basic problem (too easy for you maybe ^^).
I don't know how to put variable in SQL Queries by using dbi_query
Here is an example (this is just the problem part i know that i need a dbi_connect ):
Code:
new steamid[35]; get_user_authid(id,steamid,34);   new player_load:res = dbi_query(mysql, "SELECT * FROM mytable WHERE player_steamid = steamid")

I want to know if this code is correct because, if a user connect with a steamid for example STEAM_0:0:123456, the sql query will search for steamid and won't search for STEAM_0:0:123456. (it will search for the variable name and won't search for the variable content)

Thanks a lot and tell if i'm not really understandable

MusicSpeed

Last edited by MusicSpeed; 11-03-2009 at 04:00.
MusicSpeed 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 17:44.


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