Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2015
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. $sql = "INSERT INTO albumtest (on) VALUES ('3')";
  2.  
  3. if ($conn->query($sql) === TRUE) {
  4. $entityid = sprintf("%05d", mysqli_insert_id($conn)); //Get PID of entity
  5. } else {
  6. echo "Error: " . $sql . "<br>" . $conn->error;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement