On Wed, September 27, 2006 11:25 am, Mário Gamito wrote: > I have this code to create a database and a few tables. > > Is there a way to display the MySQL actions at runtime, i. e., display > the MySQL commands while they are being executed ? If you happened to have each SQL statement in an array, you could just echo them as you go... Another option would be to use backticks and cat the file into a mysql monitor shell, I guess, and then you'd see the stuff it prints out. If the commands are static, and don't contain ';' in the data, you could read in the file, $statements = explode(';', $sql); and then you'd have the aforementioned array. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php