<?php
require('config.php');
$myConn = mysql_connect($hostname_library, $username_library, $password_library) or die(mysql_error());
mysql_select_db($database_library,$mycon);
$pass=$_POST["txtStreet"];
$name = $_POST["txtname"];
$gender = $_POST["selCity"];
//header('Location: list.php');
echo "<br />"."customer_name :".$name;
echo "<br />"."customer_name :".$pass;
echo "<br />"."customer_name :".$gender;
$update = mysql_query("update user set password = '".$_POST["txtStreet"]."' , gender = '".$_POST["selCity"]."' where username = '".$_POST["txtname"]."' ");
?>
<script type="text/javascript">
window.location = "index.php"
</script>
ไม่มีความคิดเห็น:
แสดงความคิดเห็น