Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con = mysql_connect("$localhost","$username","$password","$database");
- $localhost = '127.0.0.1'; // host
- $username = 'root'; //User
- $password = 'password'; //password
- $database = 'World'; //Database
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db("my_db", $con);
- $sql="INSERT INTO accounts (login, password, gm, banned, email,)
- VALUES
- ('$_POST[login]','$_POST[pasword]','0','0','$_POST[email]')";
- if (!mysql_query($sql,$con))
- {
- die('Error: ' . mysql_error());
- }
- echo "1 record added";
- mysql_close($con)
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement