无法更新sql中的数据

时间:2014-01-29 17:47:53

标签: php mysql

请帮助我查询下面的问题是什么

代码: -

error_reporting(E_ALL ^ E_NOTICE);
require('../../conn/include.php');

$sel="SELECT * from `activites` where act_id='".$_REQUEST['doo']."'";
$query=mysql_query($sel);
$reader=mysql_fetch_array($query);


$title=$_POST['tit'];
$descrip=$_POST['description'];
$project=$_POST['project'];
$visibality=$_POST['vasiblity'];

if(isset($_REQUEST['update']))
{

$updat="UPDATE `my`.`activites` SET `title`='$title',`description`='$descrip',`project`='$project',`published` ='$visibality' WHERE `activites`.`act_id` ='".$_REQUEST['doo']."'";

    $que=mysql_query($updat);
    header('Location:acti.php');
    exit(); 
}

1 个答案:

答案 0 :(得分:2)

这假设是$ _REQUEST ['update']吗?

where act_id='".$_REQUEST['upd']."'";