0

Can you please suggest what shall i do.

// 7. Obtain the unique ID for the newly created entry

$id_obj = $db->query('SELECT_LAST_INSERT_ID()');
$id     = $id_obj->fetch();
$id_obj->closeCursor();

Had already seen other two answers here before posting.There is no specific solution and my problem is different.

shivank
  • 19
  • 2
  • Had already seen those two answers before posting.There is no specific solution and my problem is different. – shivank Sep 12 '16 at 18:06
  • Your problem is not different. Your query failed and `$id_obj` is `false` as a result. One of the answers on the duplicate question even tells you how to get the relevant error message. – ceejayoz Sep 12 '16 at 19:18

0 Answers0