Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $username = $_POST['username'];
- $password = $_POST['password'];
- $username = Mysql_real_escape_string($username);
- $password = mysql_real_escape_string($password);
- $sql = "INSET INTO `users` (`username`,`password`) VALUES ('"+$username+"','"+$password+"')";
- $con = mysql_connect("localhost","root","pokemon");
- mysql_select_db("register");
- if(mysql_query($sql)){
- print "Successfully registered!";
- }else{
- print "Something went wrong, sorry. ;D";
- }
- mysql_close($con);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement