Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user = $_POST['user'];
- $pass1 = $_POST['pass1'];
- $pass2 = $_POST['pass2'];
- $position = "Member";
- $date = date(dMY);
- $email = $_POST['email'];
- // Make a MySQL Connection
- mysql_connect("", "", "") or die(mysql_error());
- mysql_select_db("foolish_forums") or die(mysql_error());
- if ($user != null) {
- if ($pass != null) {
- if ($pass2 != null) {
- if ($pass1 == $pass2) {
- $username = $user;
- $pass = $pass1;
- // Insert a row of information into the table "example"
- mysql_query("INSERT INTO uiqdb_users (
- username,
- password,
- position,
- joindate,
- email
- ) VALUES (
- '$username',
- '$password',
- '$position',
- '$date',
- '$email'
- )")
- or die(mysql_error());
- echo "Data Inserted!"
- }
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement