【php开源代码栏目提醒】:网学会员,鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“update_introduce.php”一文,供大家参考学习!
<?php
/*
* Created on 2006-11-13
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
* 制作简历*/
session_start();
require_once('db.php');
$fullname =$_POST['fullname'];
$fdate = $_POST['year'].'-'.$_POST['month'].'-'.$_POST['day'];
$city = $_POST['city'];
$fund = $_POST['fund'];
$lawname = $_POST['lawname'];
$usernum = (int)$_POST['usernum'];
$trade = $_POST['trade'];
$property = $_POST['property'];
$area = $_POST['area'];
$productname = $_POST['productname'];
$award = $_POST['award'];
$note = $_POST['note'];
$address = $_POST['address'];
$zip = $_POST['zip'];
$phone = $_POST['phone'];
$fax = $_POST['fax'];
$web = $_POST['web'];
$rationalname = $_POST['rationalname'];
$email = $_POST['email'];
$db = new DataAccess();
$conn = $db->connect();
$sql = "update enterprise set fullname='$fullname',fdate='$fdate',city='$city',fund='$fund',lawname= '$lawname',usernum='$usernum',trade='$trade', " .
"area='$area',productname='$productname',award='$award',note='$note',address='$address',phone='$phone',email='$email'," .
"property='$property',zip='$zip',fax='$fax',web='$web',rationalname='$rationalname'" .
"where enterprise_id='".$_SESSION['validuser']."'";
$result = $db->perform($sql);
if(!$result)
{
header("Location: error.php?errid=11");
return;
}
$GoTo = "../enterprise.php?enterpriseid=".$_SESSION['validuser'];
header(sprintf("Location: %s",$GoTo));
?>