On Tue, 2010-06-22 at 10:41 -0400, Daniel P. Brown wrote:
> On Tue, Jun 22, 2010 at 10:17, Mike Davies <m...@integrawebdesign.co.uk> 
> 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 require I can provide it.
> 
>     Note the first error (quoted herein).  That tells you that the
> variable ($thumbsarray) is not actually an array.  How is it being
> instantiated and defined?
> 

The only earlier reference to $thumbsarray is in the first lines of the
file :

<?php
mysql_select_db($database_general, $general);
$query_details = "SELECT * FROM news WHERE news_id = '$_GET[id]'";
$details = mysql_query($query_details, $general) or die(mysql_error());
$row_details = mysql_fetch_assoc($details);
$totalRows_details = mysql_num_rows($details);

mysql_select_db($database_general, $general);
$query_thumbs = "SELECT * FROM news_thumbs";
$thumbs = mysql_query($query_thumbs, $general) or die(mysql_error());
$totalRows_thumbs = mysql_num_rows($thumbs);
$i = 1;
while ($row_thumbs = mysql_fetch_assoc($thumbs)){
$thumbsarray[$i] = $row_thumbs;
$i++;
}

//print_r($thumbsarray);
?>

This is exactly the same as the code which is working for the 'projects'
pages.

Mike

-- 
Mike Davies
Integra Web Design, Rhynie, By Huntly, AB54 4LS
01464 861535            www.integrawebdesign.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to