21.12.2016, 16:26
Hello,
I am making a registration system where you can enter your email address, if your address is already in use it's supposed to not let you register.
Well, this is my code:
The query is correct, i checked that already, when i enter it in mysql console it returns '6' which is my user id.
it's not passing anything into the cache, am i using the wrong function or what?
I am making a registration system where you can enter your email address, if your address is already in use it's supposed to not let you register.
Well, this is my code:
PHP код:
new query[130];
mysql_format(sqlHandle, query, sizeof(query), "SELECT ID FROM users WHERE Email = '%e'", inputtext);
mysql_tquery(sqlHandle, query);
new emailID;
cache_get_value_name_int(0, "ID", emailID);
printf("%d", emailID);
PHP код:
[18:11:49] [ERROR] cache_get_value_index_int: invalid row ('0') or field ('0') index
[18:11:55] [ERROR] cache_get_value_name_int: no active cache