Quote:
|
Originally Posted by Sandurr
you can't put clientname at the end of dbi_query()
Use format() to fix this.
Example:
Code:
new saint[256]
format(saint,255,"SELECT * FROM `savednames` WHERE name = '%s'", clientname)
result = dbi_query(dbc,saint)
if(dbi_nextrow(result) > 0)
{
// ... connection successful or no names in database
}
|
still same error
L 02/27/2006 - 14:51

7: [MYSQL] Invalid database handle 0
Code:
new checkid[256]
format(checkid,255,"SELECT * FROM `savednames` WHERE steamid = '%s'", usersteam) dbi_query(dbc,checkid)
result = dbi_query(dbc,checkid) /*<- error code here */
seems to be anoyed at the result code for some reason