Hi the below is giving this error message
Fatal error: Cannot use object of type stdClass as array in C:\Program Files\xampp\htdocs\familyclick\photos\myPhotos.php on line 125
any thoughts why, I used the same code formate for other queries except its done in a table and not a div
any help is excellent
PHP Code:$result = mysql_query("SELECT * FROM image_files WHERE user_id = '$user_id'") or die("Can't Perform Query");
while ($row=mysql_fetch_object($result))
{?>
<div class="thumb">
<img src="../user_images/<?php echo $row['image_name'];?>" height="75" width="75" />
</div>
<div class="clear"></div>
<?php } ?>


Reply With Quote
Bookmarks