19.06.2017, 22:50
(
Last edited by Zorono; 19/06/2017 at 11:20 PM.
)
Quote:
Removed.
Edit: Actually why would you select NULL in your query? Perhaps replace it with a few column names or an asterix (*)? If you query NULL, you'll get what you ask for -> Nothing. |
Edit:
Code:
SQL_Exists(name[], table[] = 'accounts', field[] = 'Name') { new Query[200]; mysql_format(SQL_DB, Query, sizeof(Query), "SELECT * FROM %s WHERE %s = '%e' LIMIT 1", table, field, name); mysql_tquery(SQL_DB, Query, "", ""); if(cache_num_rows() > 0) { return true; } else { return false; } return 1; }
Code:
warning 209: function "SQL_Exists" should return a value