Re: [PHP] Warning messages on web page.

2010-06-23 Thread Mike Davies
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 i

Re: [PHP] Warning messages on web page.

2010-06-23 Thread Daniel Brown
On Wed, Jun 23, 2010 at 11:14, Mike Davies wrote: >> > Nothing is returned for SELECT query as there is nothing in the table as > yet. Perhaps this is the problem. Typically all projects would have an > associated thumb image but all news items may not. Perhaps a thumb image > is necessary to stop

Re: [PHP] Warning messages on web page.

2010-06-23 Thread Ashley Sheridan
On Wed, 2010-06-23 at 16:14 +0100, Mike Davies wrote: > On Wed, 2010-06-23 at 09:09 -0400, Daniel Brown wrote: > > Hold everything, Mike! > > > > On Wed, Jun 23, 2010 at 05:18, Mike Davies > > wrote: > > [snip!] > > > > > > > > mysql_select_db($database_general, $general); > > > $query_details

Re: [PHP] Warning messages on web page.

2010-06-23 Thread Mike Davies
On Wed, 2010-06-23 at 09:09 -0400, Daniel Brown wrote: > Hold everything, Mike! > > On Wed, Jun 23, 2010 at 05:18, Mike Davies > wrote: > [snip!] > > > > > mysql_select_db($database_general, $general); > > $query_details = "SELECT * FROM news WHERE news_id = '$_GET[id]'"; > > /** > *

Re: [PHP] Warning messages on web page.

2010-06-23 Thread Daniel Brown
Hold everything, Mike! On Wed, Jun 23, 2010 at 05:18, Mike Davies wrote: [snip!] > > mysql_select_db($database_general, $general); > $query_details = "SELECT * FROM news WHERE news_id = '$_GET[id]'"; /** * Above line is placed here so that we can be easily, * deliberately, a

Re: [PHP] Warning messages on web page.

2010-06-23 Thread Ashley Sheridan
On Wed, 2010-06-23 at 15:55 +0530, Shreyas Agasthya wrote: > Mike, > > Little weird. I executed the same lines of code against my sample database > and did not got any warning. You might want to send the code for projects > and news to do any comparison? > *[I will silently wait for the PHP demi-

Re: [PHP] Warning messages on web page.

2010-06-23 Thread Shreyas Agasthya
Mike, Little weird. I executed the same lines of code against my sample database and did not got any warning. You might want to send the code for projects and news to do any comparison? *[I will silently wait for the PHP demi-gods (the Ashleys, the Pauls et al) at hover their vigilant eyes on your

Re: [PHP] Warning messages on web page.

2010-06-23 Thread Mike Davies
On Tue, 2010-06-22 at 10:41 -0400, Daniel P. Brown wrote: > On Tue, Jun 22, 2010 at 10:17, Mike Davies > wrote: > [snip!] > > > > Warning: reset() [function.reset]: Passed variable is not an array or > > object in /home/b23aadf/public_html/news/details.php on line 72 > [snip!] > > > > Is anyone a

Re: [PHP] Warning messages on web page.

2010-06-22 Thread Paul M Foster
On Tue, Jun 22, 2010 at 03:17:53PM +0100, Mike Davies wrote: > Hello, > > This is my first post to this list and I am a novice at php coding. I > can generally follow the code but not good at writing from scratch. > > > I have recently been trying to add to a website which was originally > deve

Re: [PHP] Warning messages on web page.

2010-06-22 Thread Daniel P. Brown
On Tue, Jun 22, 2010 at 10:17, Mike Davies wrote: [snip!] > > Warning: reset() [function.reset]: Passed variable is not an array or > object in /home/b23aadf/public_html/news/details.php on line 72 [snip!] > > Is anyone able to help resolve this? If you let me know what further > information you r

Re: [PHP] Warning messages on web page.

2010-06-22 Thread Shreyas Agasthya
Mike, A couple of things that I could understand reading carefully at the error. 1. reset takes an array as the input and perhaps your $thumbsarray is *not *an array? Reset will set the internal pointer to the start of the array. 2. Warning # 2 is very closely related to #1 since you can iterate

Re: [PHP] Warning messages on web page.

2010-06-22 Thread Jim Lucas
Mike Davies wrote: > Hello, > > This is my first post to this list and I am a novice at php coding. I > can generally follow the code but not good at writing from scratch. > > > I have recently been trying to add to a website which was originally > developed by someone else and is written in php