Advertisement
Hydrase

Employee Insertion

Jun 7th, 2025
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <html>
  2. <body>
  3. <?php
  4. $conn=mysqli_connect("localhost","root","","COLLEGE");
  5. if($conn->connect_error){
  6. die("Connection failed".$conn->connect_error);
  7. }
  8. echo"connection successful";
  9. $sql="INSERT INTO EMP VALUES(101,'JOSUKE',9445675288,'2003-07-23');";
  10. $sql.="INSERT INTO EMP VALUES(102,'JOHNNY',9895969276,'1998-03-06');";
  11. $sql.="INSERT INTO EMP VALUES(103,'JOTARO',9495728764,'2003-02-19');";
  12. $sql.="INSERT INTO EMP VALUES(104,'JOLYNE',9834768371,'2003-07-23');";
  13. $sql.="INSERT INTO EMP VALUES(105,'ARAKI',8712947588,'2003-07-23');";
  14. if($conn->multi_query($sql)===TRUE){
  15. echo"<br>Operations successful";
  16. }
  17. else{
  18. echo"<br>Operations unsuccessful";
  19. }
  20. $conn->close();
  21. ?>
  22. </body>
  23. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement