* Login   * Register


Last visit was:
It is currently Sun Feb 25, 2018 10:27 am
View unanswered posts
View active topics





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: code cho phần xử lý sửa và xóa
PostPosted: Fri May 08, 2009 10:12 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 10:28 pm
Posts: 12
****code xulysua.php******


<?php
require("ketnoi.php");
$u=$_POST["txtusername"];
$oldpass=$_POST["txtpassw"];
$newpass=$_POST["txtpassw"];
$s=$_POST["Login"];
if(isset($s))
{
if(empty($newpass))
{
echo"Bạn chưa thay đổi mật khẩu được";
}

else
{
$sql="UPDATE user SET password='$newpass' WHERE user='$u'";
mysql_query($sql);
echo"Bạn đã thay đổi thành công";
}
}
?>


******code xulyxoa.php********


<?php
require("ketnoi.php");
$username=$_POST["txtusername"];
$password=$_POST["txtpassw"];
$email=$_POST["txtemail"];
$diachi=$_POST["txtdiachi"];
echo"test:$username,$password,$email,$diachi";

$sql="delete from user where user='$username'";
$kq = mysql_query($sql,$lk);
include("xoa.php");

?>


Report this post
Top
 Profile E-mail  
Reply with quote  
 Post subject: Re: code cho phần xử lý sửa và xóa
PostPosted: Mon Jun 01, 2009 12:20 pm 
Offline

Joined: Mon Feb 16, 2009 9:47 am
Posts: 12
---------
co le phan nay thi do ban tui nghi the
than!!!


Report this post
Top
 Profile E-mail  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Free Forum · php-BB© · Internationalization Project · Report abuse · Terms Of Use/Privacy Policy
© Forums-Free.com 2009