1 Replies - 788 Views - Last Post: 24 August 2012 - 01:05 PM Rate Topic: -----

#1 jfunchio  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 23-August 12

How to grab videos from a database and display them on a webpage

Posted 24 August 2012 - 01:01 PM

I have a bunch of videos that I'm am storing in a MySql database (if another database or programming language would be better please let me know) and using php to grab them and display them on a webpage. As far as I can see the best and most efficient way to store the videos is in a file on the server and then putting the location of the videos in the database. I know how to query the database to get the location, I was just wondering how I take the location and use that to format and display the video on the webpage. I was thinking of using XML or SMIL.

Could someone give me some ideas of how to do this or any better ways of doing it.

Is This A Good Question/Topic? 0
  • +

Replies To: How to grab videos from a database and display them on a webpage

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5355
  • View blog
  • Posts: 27,314
  • Joined: 10-May 07

Re: How to grab videos from a database and display them on a webpage

Posted 24 August 2012 - 01:05 PM

View Postjfunchio, on 24 August 2012 - 04:01 PM, said:

As far as I can see the best and most efficient way to store the videos is in a file on the server and then putting the location of the videos in the database.


This is how I would do it.

View Postjfunchio, on 24 August 2012 - 04:01 PM, said:

I know how to query the database to get the location


Write it with the name hard coded. Then replace the name with the value pulled from the database.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1