|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-01 14:52 UTC] cynic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 03:00:01 2025 UTC |
I think a valuable addition to the MySQL functionality would be a way to run multiple statements per mysql_query() call. For instance: mysql_query('CREATE DATABASE mynewdb; CREATE TABLE newtable(id TINYINT NOT NULL);', $mysql_link); Currently, I would get a SQL syntax error at the first semicolon. How would results be handled, from SELECTs, INSERTs, etc? Maybe an array of results/IDs could be returned, or a result/ID set that is itself an array. Thank you, Hans