Advertisement
Guest User

Untitled

a guest
Jul 4th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $servername = "localhost";
  2. $username = "admin";
  3. $password = "admin123";
  4. $dbname = "database1";
  5.  
  6. $conn = mysqli_connect($servername, $username, $password, $dbname);
  7.  
  8. if (!$conn) {
  9. die("Connection failed: " . mysqli_connect_error());
  10. }
  11.  
  12. $sql = "INSERT INTO last_visit (ip, lastvisit) VALUES ('123', '123')";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement