Hi,
Iam trying to update row in table.its not working.iam write this code.what is wrong in it.
[PHP]<?PHP session_start() ;
if (isset($_SESSIO N['loggedin']))
{
if($_SESSION['username'] == "admin" || $_SESSION['username'] == "noise")
{
$user = $_GET["userid"];
$file = $_GET["fileid"];
include('db.php ');
$sql="update upload_files SET process = 'Done' where userid='$user' and fileid='$file'" ;
$result=mysql_q uery($sql) or die('Error: query failed');
header("locatio n:uploads.php") ;
}
}
?>[/PHP]
thanks
apking
Iam trying to update row in table.its not working.iam write this code.what is wrong in it.
[PHP]<?PHP session_start() ;
if (isset($_SESSIO N['loggedin']))
{
if($_SESSION['username'] == "admin" || $_SESSION['username'] == "noise")
{
$user = $_GET["userid"];
$file = $_GET["fileid"];
include('db.php ');
$sql="update upload_files SET process = 'Done' where userid='$user' and fileid='$file'" ;
$result=mysql_q uery($sql) or die('Error: query failed');
header("locatio n:uploads.php") ;
}
}
?>[/PHP]
thanks
apking
Comment