Location: PHPKode > projects > Pet Grooming Management System > pet/useradded.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<title>PGMS User Added Page</title>
$lname = $_POST['lname'];
$fname = $_POST['fname'];
$user = $_POST['user'];
$pwd = $_POST['pwd'];
$level = $_POST['level'];
$centstatus = $_POST['centerstatus'];
require ('header.inc');
require ('info.inc');
mysql_connect('localhost',$r,$p) or die("Could not connect to Host.");
mysql_select_db($d) or die("Could not select database.");
$query = "insert into users (user, password, level, lname, fname,censtatus)
         values ('$user','$pwd','$level','$lname','$fname', '$centstatus')";
$result = mysql_query($query);
	 if (mysql_affected_rows()==1){
	     echo '<P>A new user has been added. You will be directed to the manage users page in 10 seconds';
			 echo '<P>Something went wrong with you add a new user attempt.</P>';
Return current item: Pet Grooming Management System