note 89281 deleted from function.mysql-query by philip

From: Date: Fri, 04 Sep 2015 19:14:15 +0000
Subject: note 89281 deleted from function.mysql-query by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-203633@lists.php.net to get a copy of this message
Note Submitter: Andy McReed ---- Even though executing multiple queries from one string isn't possible with the mysql_query method there is a way to do it which i found on this guys site (http://www.dev-explorer.com/articles/multiple-mysql-queries). Basically you just explode your SQL string by the semicolon (;) separating the queries and then loop through the resulting array executing each one individually. Saves you from having lines and lines of function calls in your code.

« previous php.notes (#203633) next »