Re: Displaying MySQL results on runtime
| From: | Richard Lynch | Date: | Wed, 27 Sep 2006 23:27:07 +0000 |
| Subject: | Re: Displaying MySQL results on runtime | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242327@lists.php.net to get a copy of this message | ||
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