Page 1 of 1

Show Data from SQL Database Using PHP

Posted: Tue Nov 10, 2009 10:49 am
by evanleondawod
Hi guys,

I have created a site where users can upload videos(mp4) and images(jpg & gif).
The upload script sends the uploaded file to a folder on a remote server, and the filepath is stored in MYSQL.

Can any one tell how i go about playing the stored videos or show the stored images?

Also does anyone know how i can create thumbnails for uploaded videos?

any help or advice will be much appreciated...


Thanks,

Re: Show Data from SQL Database Using PHP

Posted: Tue Nov 10, 2009 1:13 pm
by califdon
evanleondawod wrote:Can any one tell how i go about playing the stored videos or show the stored images?
Images are easy: <img src="xxxx/xxxx/xxxx.jpg" alt="blahblah" border=0>
Audio and video are more difficult. There are several different ways to do it, using HTML <embed> tags, Javascript video players, Flash, etc. You will need to do quite a lot of reading to determine the best way for your situation. You might start here: http://www.tutorialized.com/tutorial/Embed-Video/3490
Also does anyone know how i can create thumbnails for uploaded videos?
PhotoShop, Gimp, PaintShopPro, even PHP.