21,882
社区成员
发帖
与我相关
我的任务
分享
if(isset($_POST['job']) && $_POST['job']=="edit"){
//$MySql_update=addslashes($MySql_update);
$MySql_update="update hotel_activities_2 set hotel_id='".$_POST['hotel_id']."',start_date='".$_POST['start_date']."',end_date='".$_POST['end_date']."',content='".$_POST['content']."',source='".$_POST['source']."',s_type='".$_POST['s_type']."' where h_id=".$_POST['hid'];
$result=mysql_query($MySql_update);
$MySql_update="update hotel_activities_2 set hotel_id='".addslashes($_POST['hotel_id'])."',start_date='".addslashes($_POST['start_date'])."',end_date='".addslashes($_POST['end_date'])."',content='".addslashes($_POST['content'])."',source='".addslashes($_POST['source'])."',s_type='".addslashes($_POST['s_type'])."' where h_id=".$_POST['hid'];
$MySql_update=mysql_real_escape_string("update hotel_activities_2 set hotel_id='".$_POST['hotel_id']."',start_date='".$_POST['start_date']."',end_date='".$_POST['end_date']."',content='".$_POST['content']."',source='".$_POST['source']."',s_type='".$_POST['s_type']."' where h_id=".$_POST['hid']);
$result=mysql_query($MySql_update);