<?php
error_reporting(0);
@session_start();
include("config.php");

$flag = $_REQUEST[flag];
$mode = $_REQUEST[mode];
$mobile= $_POST[mobile];$pass= $_POST[pass];
/***********************************/
$id= $_POST[id];

    	  $query_up=sprintf("UPDATE admin SET 
		  mobile='%s',	password='%s' WHERE id='1' ",$mobile,$pass); 
		 if(!($resu=mysql_query($query_up))){echo $query_up.mysql_error(); exit;}

header("Location:index.php");
	exit;
?>
