Display jpeg image
Posted on 2005-03-22
I am trying to dislpaly a jpeg image, the image file path i am pulling from a mysql table.
The code i have is
<?//I have a session_start() and i intialise the session variable here.
This code is within a loop displaying the rows of the table from my query.
$im = @imagecreatefromjpeg("&image_");//&image_ being the variable the file path is held in.
I have also tried by entering a filepath which i know is goo but i get the same error.
I have tried putting removing the '@' but i get another error ( but i am not sure what it does)
The error i get is
Warning: imagejpeg(): supplied argument is not a valid Image resource in ...../basket.php on line 127
Line 127 is imagejpeg();
Hopefully you guys can enlighten me as to what i am doing wrong.