|
Posted by Jesse Burns aka jburns131 on 11/24/07 19:32
Sorry for the delay in response, I've had trouble with my connection.
That was my problem. Thank you very much for the help and advise.
I hope you and everyone else had a great holiday.
"Rik Wasmus" <luiheidsgoeroe@hotmail.com> wrote in message
news:op.t14z8k1c5bnjuv@metallium.lan...
On Wed, 21 Nov 2007 06:28:04 +0100, Jesse Burns aka jburns131
<jburns131@gmail.com> wrote:
> I've got a coding problem here that I could use some help with.
> $row = mysql_fetch_array($this -> mySQLresult, $type) or
> die(mysql_error());
Don't use 'or die()' here. If there are no further results (rows are
finished), mysql_fetch_array() will return false, the die() will be
executed, with nothing to display as there is no mysql_error(), it's just
worked correctly.
And don't die() in production. Log the error, and degrade as gracefull as
you can.
--
Rik Wasmus
Navigation:
[Reply to this message]
|