Commit f171a2cd authored by Alexander Butenko's avatar Alexander Butenko

show how to get insert id in doc

parent cf73cba1
......@@ -21,7 +21,9 @@ $data = array(
'lastName' => 'Doe',
);
if($db->insert('users', $data)) echo 'success!';
$id = $db->insert('users', $data)
if($id)
echo 'user was created. Id='.$id;
```
### Select Query
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment