When i try to go over the image I get this error message in the browser:

'null' is null or not an object

This is what the files look like:

[PHP] $null_str = substr(md5(uniq id(mt_rand())), 0,5);
$img_id = $row[item_nid].'_'.$null_str;
if ($db) {
$t=0;
$db->query("selec t * from mall_color where mc_pid='$row[item_nid]' and mc_part=0...