This can be done using the MySQLi interface, mysqli_multi_query() in particular.
http://ca3.php.net/manual/en/mysqli.multi-query.php
It should be noted that you need to be extra careful with your escaping when using this function as any SQL injection attack has a much broader possible affect.