Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbname = 'myusername when the hell i go back uni';
- $con = @mysql_connect('connection path', $dbname, $dbname);
- $firstname = $_POST['firstname'];
- $lastname = $_POST['lastname'];
- $Email = $_POST['Email'];
- $username = $_POST['Username'];
- $password = $_POST['Password'];
- if (!$con)
- {
- die('Could not connect: ' . mysql_error()); # error will come when the connection is not right
- }
- mysql_select_db($dbname) or die("database dosent exsist");
- if (!mysql_query($query,$con))
- {
- die('can not connect to database: ' . mysql_error());
- }
- echo "you are now a user on the website you can login";
- mysql_close($con);
- exit;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement