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 order by mc_nid");
if ($db->numrow>1) {
while ($mrow = $db->nrecord(1)) {
$color_select .="<td style='padding: 2 2 2 2'><a href='javascrip t:void(0)' onMouseOver=\"g etElementById(' $img_id').src=' image/item_color_big/$mrow[mc_bfile]'\" hidefocus='true '><img src='image/item_color_smal l/$mrow[mc_sfile]' style='border:1 px solid #cccccc' height=10 width=18></a></td>\n";
if (!(++$t%5)) $color_select .="</tr><tr>";
}
}
}[/PHP]
'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 order by mc_nid");
if ($db->numrow>1) {
while ($mrow = $db->nrecord(1)) {
$color_select .="<td style='padding: 2 2 2 2'><a href='javascrip t:void(0)' onMouseOver=\"g etElementById(' $img_id').src=' image/item_color_big/$mrow[mc_bfile]'\" hidefocus='true '><img src='image/item_color_smal l/$mrow[mc_sfile]' style='border:1 px solid #cccccc' height=10 width=18></a></td>\n";
if (!(++$t%5)) $color_select .="</tr><tr>";
}
}
}[/PHP]
Comment