Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
need to use php to output <object> info for a video to show on its own page
Old 06-09-2010, 06:36 AM need to use php to output <object> info for a video to show on its own page
Webmaster Talker

Posts: 611
Trades: 0
hi, this is the code i have so far, i want to put the video on its own page pulled from the database.

Code:
echo '<a href="picture.php?fileName='.urlencode($picture['fileName']).'
"><object data="data/test.mpg" type="video/mpeg" width="320" height="255">
  <param name="src" value="data/test.mpg">
  <param name="autoplay" value="false">
  <param name="autoStart" value="0">
  alt : <a href="data/test.mpg">test.mpg</a>
</object>
 ';
silverglade is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-09-2010, 06:42 AM Re: need to use php to output <object> info for a video to show on its own page
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
PHP cannot open "new pages"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-09-2010, 06:47 AM Re: need to use php to output <object> info for a video to show on its own page
Webmaster Talker

Posts: 611
Trades: 0
thanks chris, do you know how i would link to a new page and put in the video i have stored in the database into the link so it shows up on the referenced page in the hyperlink? please
silverglade is offline
Reply With Quote
View Public Profile
 
Old 06-09-2010, 07:01 AM Re: need to use php to output <object> info for a video to show on its own page
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
you would need to use javascript to open a new window with a querystring.

Use a link with a target attribute and.

a querystring.

or

use .htaccess or the 404 page to redirect to a scripted URI ie /video-name/ the page the pulls the video name from the URI.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-09-2010, 07:25 AM Re: need to use php to output <object> info for a video to show on its own page
Webmaster Talker

Posts: 611
Trades: 0
thank you chris for that. once again thats out of my league. oh well. hehe. ill have to move on to something else. thanks for replying.
silverglade is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to need to use php to output <object> info for a video to show on its own page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15266 seconds with 12 queries