in reply to Re: Testing to see if a MySQL query is true
in thread Testing to see if a MySQL query is true
The phrase "in the first iteration of your while loop" made me think of something other than the way I would do it, but the idea is at least very similar. Like this:
- tye (at least very similar to "Tye")$sth->execute(); my @ary= $sth->fetchrow_array(); if( @ary ) { open(MAIL,"|$mailprog -t"); print MAIL ... do { print MAIL join ("\t", @ary), "\n"; } while( @ary = $sth->fetchrow_array() ); print MAIL "\nEND OF SCHEDULED EVENTS!\n"; close(MAIL); } $sth->finish();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: Testing to see if a MySQL query is true
by runrig (Abbot) on Oct 23, 2002 at 01:04 UTC |