mysql - ezSQL insert and return id or row? -
i came across ezsql , thought it's pretty cool.
based on tutorial, perform next create new row:
$db->query(“insert users (name) values ('amy')”) ;
how retrieve id ( assuming auto-increment ) above query ?
thanks!
according documentation, id should accessible $db->insert_id
mysql ezsql
No comments:
Post a Comment