Page 1 of 1
Display Pictures on the webpage
Posted: Tue Jan 18, 2005 2:21 pm
by juan00982
Hi,
I'm using php and mysql and I finally managed to upload my pictures to the webserver and saved the picture name on MySql. How can I print the pictures on the webpage

.
Your help will be greatly apreciated.
Thanks,
Juan
Posted: Tue Jan 18, 2005 2:35 pm
by feyd
might want to search for "+force +download"
there are a lot of threads dealing with sending images via php.
Posted: Tue Jan 18, 2005 2:35 pm
by onion2k
You'll need a bit more code than this, but I'm sure it'll point you in the right direction:
Code: Select all
<img src="<?php echo $imagefilename; ?>">
Posted: Tue Jan 18, 2005 4:14 pm
by juan00982
Thanks for the info.
I managed to print it to the webpage but now I want to resize the picture, I know there're alot of threads with this info, but none of them seems to work, at least the ones I found.
I want just a simple resize script.
Posted: Tue Jan 18, 2005 4:18 pm
by feyd
resizing is a whole seperate thing than displaying an image
search through the forums for "imagecopyresampled" if you are using JPEG/truecolor files and GD2. Search for "imagecopyresized" if you are using GIF or other palettized images or an older version of GD.
To see which version of GD you have, look through the output of phpinfo()