mysql更新没有更新

时间:2014-01-27 12:00:54

标签: php mysql forms

这是 代码

if (isset($_POST['edit']) and $_POST['edit'] == 'page')
{
 $upage= mysql_query("UPDATE `upages` SET
 upage_name='$page_name',
 upage_content='$page_content',
 upage_act='$page_act',
 upage_count='$page_count',
 upage_com='$page_com',
 upage_pos='$upage_pos'
 WHERE
 upage_id='$gpageid' ");
 if (isset($upage))
 {
   print_r ($_POST);
 }
}


print_r结果是 数组([page_name] => ss [page_content] => sss [page_pos] => 1 [page_act] => 2 [page_com] => 2 [page_count] => 0 [edit] => page [upage_id] => 4)

1 个答案:

答案 0 :(得分:-1)

请使用mysql_query('INSERT_QUERY')或die(mysql_error());用于修复调试。