File: /home/SimranTrikha/bwebz.com/web/bwebzpanel/update_blog.php
<?php
session_start();
include('conn.php');
{
$name=$_FILES['t2']['name'];
$temp_name=$_FILES['t2']['tmp_name'];
move_uploaded_file($temp_name,'/images/'.$name);
{
mysql_query('update blog set img="'.$name.'" , title="'.$_POST['t3'].'", descrp="'.$_POST['t4'].'", date="'.$_POST['t5'].'", month="'.$_POST['t6'].'" , year="'.$_POST['t7'].'" where img_id="'.$_POST['t1'].'" ');
header('location:blog.php');
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="css/admin.css" rel="stylesheet" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Update Blog Content</title>
</head>
<body>
</body>
</html>