Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbc = mysql_connect("localhost","root","");
- if (! $dbc){
- echo "a7a";
- exit(1);
- }
- $db_select = mysql_select_db("people",$dbc);
- if(!$db_select){
- echo "a7a";
- exit(1);}
- $username=$_POST['user'];
- $address=$_POST['address'];
- $email=$_POST['e-mail'];
- $password=$_POST['password'];
- $phone=$_POST['phonenumber'];
- $city=$_POST['city'];
- //$check_email="select * from people where email='$email'";
- /*$local=mysql_query($check_email);
- if(mysql_num_rows(resource $local)>0){
- echo 'the email'.$email.'already exitsts';
- exit();
- }
- */
- $query="INSERT INTO users (user,address,phone,password,city,email) VALUES ($username,$address,$phone,$password,$city,$email)";
- /*if(mysql_query($query)){
- echo 'registration successfull!';
- }
- */
- echo 'welcome' .$address;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement