[PHP-DB] multi_query "Commands out of sync" after Insert

2008-01-11 Thread J. Hill
I wouldn't think there would be a result set from a mysqli multi_query when the query is a group of insert statements (there is no auto_increment column), but I get a "commands out of sync" error on my next query. Originally, I had: foreach ( . . . . $sql. = "insert in

Re: [PHP-DB] Re: Beginners Problem

2008-01-11 Thread Rene Brehmer
Peter Westergaard wrote: You should probably check out http://php.net/mysql_query for more information on this function. The difference between "empty result" and "invalid query" is significant. Once you've determined that the query is valid, you must also then check to see if it returned