Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <?php
- $con = mysql_connect("localhost","","");
- $user=$_POST["user"];
- $nome=$_POST["nome"];
- $password=$_POST["password"];
- $email=$_POST["email"];
- $codico=$_POST["codico"];
- $localidade=$_POST["Localidade"];
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db("book", $con);
- $veriemail= mysql_query("SELECT Email FROM cliente");
- if ($veriemail==$_POST["email"])
- echo "Ja existe este email";
- $inserir=mysql_query("INSERT INTO cliente (Username, adminyn, Nome, PassWord, Email ,CodicoP ,Localidade)
- VALUES ('$user', '0', '$nome', '$password', '$email', '$codico', '$Localidade');
- if($inserir==1)
- echo"feito";
- mysql_close($con);
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment