Advertisement
Guest User

Michael

a guest
May 30th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2.  
  3. $link = mysqli_connect("localhost","root","","web_table");
  4.  
  5. if (mysqli_connect_errno()) {
  6.  
  7. echo "Failed to connect to MySQL: " . mysqli_connect_error();
  8.  
  9. }
  10. echo "<p> Connection Successful!"
  11.  
  12.  
  13.  
  14. mysqli_query($link,"INSERT INTO web_formitem (`ID`, `formID`, `caption`, `key`, `sortorder`, `type`, `enabled`, `mandatory`, `data`)
  15. VALUES (105, 7, 'Tip izdelka (6)', 'producttype_6', 42, 5, 1, 0, 0)")
  16. or die(mysqli_error($link);
  17.  
  18. echo "<p>Insert successfull";
  19.  
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement