You are here: Re: While Loop Problem « PHP Programming Language « IT news, forums, messages
Re: While Loop Problem

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация