Advertisement
humpda

SQL Insert without form

Aug 1st, 2024
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <html>
  2. <head>
  3.    
  4. </head>
  5.  
  6. <body>
  7.  
  8. <?php
  9.     $server = "localhost";
  10.     $username = "";
  11.     $password = "";
  12.     $db = "";
  13.  
  14.     $conn = mysqli_connect ($server, $username, $password, $db);
  15.    
  16.    
  17.     $sql = "Insert into ##table name## (Surname, Age) Values ('Timmy','32')";
  18.     mysqli_query($conn, $sql);
  19.    
  20.     mysqli_close($conn);
  21. ?>
  22.    
  23. </body>
  24.  
  25. </html>
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement