我正在使用以下更新查询来更新我的代码。它在本地服务器上运行良好,但在实时服务器上无法运行,有人可以告诉我可能是什么原因
<?php
if (isset($_POST['submitContactInfo'])) {
$socityId = $_SESSION['socityid'];
$city = $_POST['city'];
$pin = $_POST['pin'];
$state = $_POST['state'];
$telephone = $_POST['telephone'];
$mobile = $_POST['mobile'];
$email = $_POST['email'];
$address = $_POST['address'];
$sql = "UPDATE `_acappv1`.`society_profile` SET `ADDR` = '$address', `CITY` = '$city', `PIN` = '$pin', `STATE` = '$state', `TEL` = '$telephone', `MOBILE` = '$mobile', `EMAIL` = '$email' WHERE `society_profile`.`SOCIETY_ID` = '$socityId'; ";
$res = mysql_query($sql);
}
?>
我注意到一件事,当我单击提交按钮时,在服务器端页面刷新,而在客户端页面不刷新并添加数据。