Guyz 我的 php 项目中有这个查询,我不知道它有什么问题,任何人都可以帮忙
$first_name = $_POST['first_name'];
$middle_name = $_POST['middle_name'];
$last_name = $_POST['last_name'];
$telephone = $_POST['telephone'];
$date_of_birth = $_POST['date_of_birth'];
$number = $_POST['number'];
mysql_connect('domain','username','password');
mysql_select_db('db name');
$query="UPDATE scout_cabs SET first_name = '$first_name' , middle_name = '$middle_name' , last_name = '$last_name' , telephone = '$telephone' , date_of_birth = '$date_of_birth' WHERE number = '$number'";
mysql_query($query);
mysql_close();