<?php
include("connect.php");
$id=$_GET['id'];
$d = date("m/d/y");
$jname=$_POST['jname1'];
$loc=$_POST['loc1'];
$compID=$_POST['compID1'];
$descri=$_POST['descri'];
$result ="UPDATE tbl_job SET jname = '$jname', loc = '$loc', descri = '$descri', compID = '$compID', m_date='$d' WHERE jobID = '$id' ";
$rs2 = mysql_query($result) or die("Invalid Query <br>$result");
echo ' <div align="center"><strong>Jobs Successfully Updated</strong></div>';
echo '<meta http-equiv="refresh" content="3;URL=jobs_cont.php?id='.$id.'"">';
?>
No comments:
Post a Comment