It should be noted that table names and field names are wrapped with operators ("`" on the "~" key in the upper left corner of the keyboard). The values after VALUES are enclosed in single quotes, which is said to be an anti-injection measure.
Copy the code The code is as follows:
$sql="INSERT INTO `Table name` (`Field 1`, `Field 2`) VALUES ('Value 1', 'Value 2')";
mysql_query($sql);
The above introduces the special symbol issues that are prone to errors when connecting to asp.net database and PHP database, including the content of asp.net database connection. I hope it will be helpful to friends who are interested in PHP tutorials.