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