April 18th, 2000, 10:06 AM
-
I want to open a new window, with the same size as the image. I use the following code:
if ($row[4]!="")
{
$size = GetImageSize("/shop/images/$row[4]");
echo "<a href="javascript:void(null)" onclick="window.open('show.php3?name=$row[4]','','toolbar=no, status=no $size[3]')">
<img src="/shop/images/$row[4]"></a>";
}
The image appears (so it's on this location), but first I get the following error:
Warning: Unable to open /shop/images/menudot.gif in c:mywebshopview.php3 on line 31
Warning: No such index in string in c:mywebshopview.php3 on line 32
Line 31, is the line starting with $size= get........
Anybody an idea about what's wrong?
Thnx
Dave
April 18th, 2000, 10:14 PM
-
Try:
$size = GetImageSize("images/$row[4]");