hi all,
i have defined a stored procedure (let's call it proc_create_node(parent INT)) in mysql which does an insertion.
when i call it from the mysql cli, doing the following works just fine:
CALL proc_create_node(12);
SELECT LAST_INSERT_ID();
and i get the last inserted id:
+------------------+
| LAST_INSERT_ID() |
+------------------+
| 15 |
+------------------+
now, when i call these lines from php, or if i use the mysql_insert_id() php function, i always get back 0.
what am i missing? how could i get the last inserted id within php?
yours ... pierre