Solution: data cannot be inserted into the database. Solution
Source: Internet
Author: User
Solution: data cannot be inserted into the database. The database confirms that the connection is successful. Table name keai_user field f_logintimes (logon times) f_lasttime (recent logon time) f_loginip (logon ip address) $ ip = $ _ SERVER ['remote _ ADDR ']; $ SQL = & quot; UPDATEkeai_use: data cannot be inserted into the database.
The database confirms that the connection is successful. Table name keai_user field f_logintimes (logon times) f_lasttime (recent logon time) f_loginip (logon IP address)
$ Ip = $ _ SERVER ['remote _ ADDR '];
$ SQL = "UPDATE keai_user SET f_logintimes = f_logintimes + 1 ,";
$ SQL. = "f_lasttime = now (), f_loginip = '$ IP '";
$ SQL = "WHERE f_username = '$ username '";
$ Db-> query ($ SQL); the contents of the keai_user table remain unchanged after execution. why?
------ Solution --------------------
Reference$ Db-> query ($ SQL); the contents of the keai_user table remain unchanged after execution. why?
------ Solution --------------------
$ SQL = "WHERE f_username = '$ username '";
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.