Code:
result = dbi_query(dbc,"SELECT * FROM `tablename` WHERE `steamid` LIKE "%s", authid);
is more clean, but I'm starting to think that there is a collision between % (SQL joker term) and %s
By the way, is there any error printed ? (I mean client_print(); error type)