Re: create and read array

From: Date: Sat, 18 Sep 2004 05:36:36 +0000
Subject: Re: create and read array
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-197085@lists.php.net to get a copy of this message
John Taylor-Johnston wrote:
John, $sql .= "INSERT INTO newtable VALUES ({$mydata->AUS},{$mydata->id});\r\n"; I thought mysql would not permit that, running more than one query (insert ...) at a time? You can get away with it in phpmyadmin, although.
You can only run one query per mysql_query() call. PHPMyAdmin breaks queries up into separate mysql_query() calls. Other databases (like SQLite) allow more than one query at a time. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#197085) next »