|
Posted by Rik Wasmus on 11/25/07 01:10
> "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 =3D 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 j=
ust
> worked correctly.
>
> And don't die() in production. Log the error, and degrade as gracefull=
as
> you can.
On Sat, 24 Nov 2007 20:32:13 +0100, Jesse Burns aka jburns131 =
<jburns131@jbwebware.com> wrote:
> 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.
You're welcome, there was no holiday in The Netherlands I'm aware off, =
however, I'll finally have 1 week of in 2 weeks, and I'll make the most =
of =
it :)
-- =
Rik Wasmus
[Back to original message]
|