它完美地在应用程序上执行我仔细检查了它。它正确发送所有参数,问题出在 php 脚本中,它没有执行查询(更新、删除)它正确执行插入查询。php 脚本与 html 表单完美配合,但我不知道问题出在哪里。
这是我的 php 脚本:
$mysql_host = "本地主机"; $mysql_database = "定位器"; $mysql_user = "根"; $mysql_password = ""; mysql_connect($mysql_host,$mysql_user,$mysql_password) 或死(mysql_error()); mysql_select_db($mysql_database); $uMail = $_POST['u_mail']; $uIMEI = $_POST['u_IMEI']; $uName = $_POST['u_name']; $uPass = $_POST['u_pass']; $tName = $_POST['t_names']; $tIMEI = $_POST['t_IMEIs']; $tDesc = $_POST['t_desc']; mysql_query("UPDATE user_master SET t_names='$tName',t_IMEIs='$tIMEI',t_desc='$tDesc' WHERE u_mail = '$uMail' AND u_IMEI = '$uIMEI'"); mysql_close(); ?>