Below is the code that I am currently using to update Job Postings with the simple click of an "Edit" button; however, it doesn't seem to be working for me.


<?php session_start();?>
<?php include_once("login_check.php");?>
<?php include_once("lib/conn.php");?>
<?php
if(isset($_POST['submit']) && $_POST['submit'] == 'Update'){

$postjob_sql = "UPDATE postjob SET about = '".trim(addslashes($_POST['about']))."',
industry = '".trim(addslashes($_POST['industry']))."',
title = '".trim(addslashes($_POST['title']))."',
description = '".trim(addslashes($_POST['description']))."',
workload = '".trim(addslashes($_POST['workload']))."',
education = '".trim(addslashes($_POST['education']))."',
country = '".trim(addslashes($_POST['country']))."',
city = '".trim(addslashes($_POST['city']))."',
state = '".trim(addslashes($_POST['state']))."',
year = '".$_POST['year']."',
month = '".$_POST['month']."',
last_date = '".$_POST['last_date']."',
requirements = '".trim(addslashes($_POST['requirements']))."',
important = '".trim(addslashes($_POST['important']))."',
date_modified = '".time()."' WHERE postjob_id = '".$_POST['post_id']."'";

mysql_query($postjob_sql);
$_SESSION['SUCCESS'] = 'Job Updated Successfully';
@header("location:editjob.php?id=".$_POST['post_id']."");
}
?>
<?php include_once("lib/header.php");?>
<?php include_once("lib/left.php");?>
<script src="../calendar/js/jscal2.js"></script>
<script src="../calendar/js/lang/en.js"></script>
<link rel="stylesheet" type="text/css" href="../calendar/css/jscal2.css" />
<link rel="stylesheet" type="text/css" href="../calendar/css/border-radius.css" />
<link rel="stylesheet" type="text/css" href="../calendar/css/steel/steel.css" />
<h1 class="page-title">Edit Job</h1>
<?php
$job_sql = "SELECT * FROM postjob WHERE postjob_id = '".$_GET['id']."'";
$job_res = mysql_query($job_sql);
$job_row = mysql_fetch_array($job_res);
?>