Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Datebase infomation
- $servername = "localhost";
- $username = "root";
- $password = "";
- $dbname = "test";
- $steamid = $steamprofile['steamid'];
- // Create connection
- $conn = new mysqli($servername, $username, $password, $dbname);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- // Create data
- $sql = "INSERT INTO users (steamid)
- VALUES ('$steamid')";
- if (!$conn->query($sql) === TRUE) {
- echo "Error: " . $sql . "<br>" . $conn->error;
- }
- $conn->close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement