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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php