#1

Found the problem. Thanks for your replies.
Reply
#2

PHP код:
format(querysizeof(query), "UPDATE players SET Age = %d WHERE Name = '%s'"inputtextName(playerid)); 
//Edit: And remove....

PHP код:
mysql_real_escape_string(inputtextEscAge); 
Reply
#3

Function strlen(const string[]) get the length of a specific string, but function strval(const string[]) convert a string to an integer. So change strlen(inputtext) to strval(inputtext).
Reply
#4

Quote:
Originally Posted by HardRock
Посмотреть сообщение
PHP код:
format(querysizeof(query), "UPDATE players SET Age = %d WHERE Name = '%s'"inputtextName(playerid)); 
//Edit: And remove....

PHP код:
mysql_real_escape_string(inputtextEscAge); 
I will try it.
EDIT: Oops, I copy-pasted another function, so instead of checking if the entered value is suitable (between 18 and 80) I'm checking the lenght of the entered value and I have to enter 18 characters long value to make it work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)