Oops - sorry that's not the problem
The problem is the directory.
I'm trying to load a picture from
wyicpictures
but the url is running in wyic
I am trying to show the directory as
/home/ambitire/public_html/wyicpictures/tilly.jpg
This actually works for:
$image="/home/ambitire/public_html/wyicpictures/".mysql_result($result,$counter,"picture1");
$imagesize=getimagesize($image);
$width=$imagesize[0];
$height=$imagesize[1];
if ($imagewidth>300)
{
$changewidth=300/$width;
$width=$width$changewidth;
$height=$height$changewidth;
}
if ($height>300)
{
$changeheight=300/$height;
$width=$width$changeheight;
$height=$height$changeheight;
}
but not for:
<img src="<?php echo "/home/ambitire/public_html/wyicpictures/".mysql_result($result,$counter,"picture1") ?>" width=<?php echo $width ?> height=<?php echo $height ?>>
It can obviously find the file allright to set the height, but not as a source for the picture.
What do I need to do in the picture source?
The picture property shows:
http://www.irishireland.net/home/ambitire/public_html/wyicpictures/tillpriz.JPG
which I think is absolutely correct, but it won't display it.
Thannks folks!