Php and mysql are used in combination. the operations on numbers are completely correct. The table attribute in the database is varchar, and the database is also setutf8. but the problem should not be here, not just Chinese characters, no English letter is required. if one row of the six columns is not a number, the update will not fail, but all columns will become null. the update statement is as follows: $ query & quot; updateusersetFirstname & #39; & quot ;. $ _ GET [Firstname]. & quot; & #39;, Lastname & #39; & quot ;. $ _ GET [Lastname]. insert number phpupdate
Php and mysql are used in combination. the operations on numbers are completely correct. The table attribute in the database is varchar, and set utf8 is also in the database. but the problem should not be here, not just Chinese characters, the update statement is as follows:
$ Query = "update user set Firstname = '". $ _ GET [Firstname]. "', Lastname = '". $ _ GET [Lastname]. "', Age = '". $ _ GET [Age]. "', Hometown = '". $ _ GET [Hometown]. "', Job = '". $ _ GET [Job]. "'Where id = $ _ GET [id]";
Thank you for your guidance! Thank you !!!
Code: