| 
 Posted by Tim Roberts on 05/03/06 09:29 
"McHenry" <mchenry@mchenry.com> wrote: 
 
>I am trying to add a new row to a MySQL table using a stored procedure and  
>then obtain the new id value. The rows are added and affected _rows returns  
>1 confirming the statement worked however no insert_id value is returned.  
 
What happens if you try $mysqli->query("SELECT LAST_INSERT_ID();")?  That 
should be equivalent. 
--  
- Tim Roberts, timr@probo.com 
  Providenza & Boekelheide, Inc.
 
  
Navigation:
[Reply to this message] 
 |