Show Data from SQL Database Using PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
evanleondawod
Forum Newbie
Posts: 8
Joined: Sat Mar 28, 2009 1:04 pm

Show Data from SQL Database Using PHP

Post 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,
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Show Data from SQL Database Using PHP

Post 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.
Post Reply