Re: Warning messages on web page.
| From: | Mike Davies | Date: | Wed, 23 Jun 2010 15:47:50 +0000 |
| Subject: | Re: Warning messages on web page. | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306379@lists.php.net to get a copy of this message | ||
On Wed, 2010-06-23 at 16:22 +0100, Ashley Sheridan wrote:
> On Wed, 2010-06-23 at 16:14 +0100, Mike Davies wrote:
> If you haven't in your code, then make sure you define $thumbsarray as
> an array before you attempt to use it in the loop. This will have no
> effect where rows are returned, but it will ensure an empty array
> exists if your code expects it and there is no data in the database to
> populate it.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
Thanks Ash and to everyone else. I added :
$thumbsarray=array()
above the first instance and the warning no longer appears. Hopefully
nothing else will be affected.
Many thanks for all your time.
regards,
Mike
--
Mike Davies
Integra Web Design, Rhynie, By Huntly, AB54 4LS
01464 861535 www.integrawebdesign.co.uk