xpblueScreenOfDeath
Programmer
- Sep 1, 2004
- 87
Can I execute multiple queries with PEAR DB? But, I notice PEAR DB has a function called nextResult which is suppose to return the next resultset. When I try the follow, PEAR always give me an error about syntax. But when I take off the last part that return the id, it works fine. So, how do I execute multiple queries with PEAR?
Code:
$db->query("Insert Into item_format (Description) values (?); select last_insert_id();", array(2));