Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require './conn/connect.php';
- //connect to MySQL or return an error
- $conn = @mysql_connect($dbhost, $dbuser, $dbpass)
- or die('Could not connect , Try it later ...');
- //set database name
- $dbname = "l2jdb";
- //select database or return an error
- $dbselect = mysql_select_db("$dbname")
- or die ('Could not select database , Try it later ...');
- //get username and password info from the form, protecting against SQL injection
- $user = mysql_real_escape_string($_POST["name"]);
- $pass = mysql_real_escape_string($_POST["pass"]);
- $confirm = mysql_real_escape_string($_POST["confirm"]);
- $email = mysql_real_escape_string($_POST["mail"]);
- if($_POST['submit'])
- {
- if(isset($_POST['name']) && isset($_POST['pass']) && isset($_POST['confirm']) && isset($_POST['mail']))
- {
- }
- else
- {
- header ("Location: account-1.html");
- exit();
- }
- }
- else
- {
- echo "Account Manager for Lineage 2 Avocado<br>Leave This Page :)";
- //close MySQL connection
- mysql_close();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement