Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Update query not working


LinusIT - 3:06 pm on Nov 8, 2011 (gmt 0)


If I remove the delete code then it works, does this help at all?

Working Code:

if (isset($_REQUEST['action'])) {
switch ($_REQUEST['action']) {
case 'complete':
$sql_complete="UPDATE diary SET diary_status=1 WHERE diary_id=$id";
$res_complete = mysql_query($sql_complete) or die(mysql_error());
if($res_complete) {
header("location: job.php?id=$id");
exit(); }
}}


Thread source:: http://www.webmasterworld.com/php/4384775.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com