Re: [PHP] Displaying MySQL results on runtime
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Wed, 27 Sep 2006 18:27:07 -0500 (CDT)
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
.
- References:
- Displaying MySQL results on runtime
- From: Mário Gamito
- Displaying MySQL results on runtime
- Prev by Date: Re: [PHP] strange errors from command line vs. web
- Next by Date: Re: [PHP] Re: Various errors being generated from an apache/php combo
- Previous by thread: Re: [PHP] Displaying MySQL results on runtime
- Next by thread: Re: hotel reservations
- Index(es):
Relevant Pages
|