In this way, data cannot be deleted. Prompt that the deletion is successful. Khan PHPcode & lt ;? Phpsession_start (); if ($ _ SESSION [name] ==& quot; & quot;) {exit () ;}include & quot; img/ddddd. php & quot; $ ming =$ _ SESS cannot delete data. Prompt deleted successfully, Khan
PHP code
------ Solution --------------------
$ Shan and $ ming both get the value?
Is there this data in the database?
------ Solution --------------------
Is the database code correct?
Discussion
Forget it. forget it by modifying the delete id. I have solved this problem. There is another problem. All of my UTF-8 encoded utf8_general_ci web pages to the database, and database connections are utf-8. but the man who writes data into MYSQL still does not know what is going on.
------ Solution --------------------
1. $ SQL = mysql_query ("delete from 'readuser' where 'falsename' = '$ Sha' and 'username' =' $ Ming '");
If ($ SQL) {// it only indicates that the SQL command is not correct and does not indicate that the deletion is successful.
2. forget it. forget it by modifying or deleting the id. I have solved this problem.
Not solved! You just avoided the problem of querying by content.
3. all of my codes are unified. the utf8_general_ci webpage goes to the database, and the database connection is utf-8. However, the man who writes data to MYSQL is still garbled.
The data before modifying the character set is still garbled.
Mysql_query ("set names utf8"); only tells mysql that the subsequent data is UTF-8 encoded, but what character set is actually used, that day only knows