<?
session_start();
ob_start();
?>
<?
$id_m=$_GET[id_m];
$name=$_POST['name'];
$fname=$_POST['fname'];
$position=$_POST['position'];
$under=$_POST['under'];
$department=$_POST['department'];
$faction=$_POST['faction'];
$tel=$_POST['tel'];
$email=$_POST['email'];
include("connectdata.php");
$cs1="SET character_set_results=tis620";
mysql_query($cs1)or die ('Error query:'.mysql_error());
$cs2="SET character_set_client=tis620";
mysql_query($cs2)or die ('Error query:'.mysql_error());
$cs3="SET character_set_connection=tis620";
mysql_query($cs3)or die ('Error query:'.mysql_error());
$sql="updata member set name='$name',fname='$fname',position='$position',under='$under',department='$department',faction='$faction',tel='$tel',email='$email' where id_m='$id_m' ";
$db_query=mysql_db_query($db,$sql);
echo "á¡éä¢áÅéÇ ";
?>
</p>
</div>
<meta http-equiv="refresh" content="3;url=user.php" >
</body>
</html>
Tag : PHP, MySQL
Date :
2010-09-27 15:20:08
By :
maltra
View :
823
Reply :
7
No. 1
Guest
30.
$sql="updata member set name='$name',fname='$fname',position='$position',under='$under',department='$department',faction='$faction',tel='$tel',email='$email' where id_m='$id_m' ";