Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. $query = "INSERT INTO articles (Title,Description) VALUES ('{$title}','{$description}')";
  2. $result = mysqli_query($connection, $query);
  3.  
  4. $query = "INSERT INTO articles (Title,Description) VALUES ('{$title}','{$description}')";
  5. $result = mysqli_query($connection, $query);
  6. $id = mysqli_insert_id($connection);
  7.  
  8. $insertId = mysqli_insert_id ( $connection );
  9.  
  10. mysql_query("INSERT INTO mytable (product) values ('kossu')");
  11. printf("Last inserted record has id %dn", mysql_insert_id());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement