Need Help: Launch embedded video via server side PHP script
Posted: Sat Mar 29, 2008 11:45 pm
I am attempting to launch my flash videos from variable URL referenced on a server. Any help is greatly appreciated.
1) I am able to launch the video referenced directly...for example:
and 2) I can print the URL as output from server via PHP script...for example:
(where the 'link' value is "http://.../embedded_flash_video.html")
launch_movie.php:
But I do not know how to update the PHP script to simply launch the URL (link) for the selected id (with the result of launching the video as in #1 above) as opposed to printing the URL (link) when the href is clicked.
Thanks
1) I am able to launch the video referenced directly...for example:
Code: Select all
printf("Movie %s: <a href='http://.../embedded_flash_video.html'>%s</a>Code: Select all
printf("Movie %s: <a href='launch_movie.php?id=%s'>%s</a>launch_movie.php:
Code: Select all
<?php
//.........connect....
$id = mysql_real_escape_string($_GET['id']);
$query = "SELECT id, movie, link FROM vid WHERE id='$id'";
$result = mysql_query($query);
// If results are found, output them
if (mysql_num_rows($result) > 0) {
$row = mysql_fetch_array($result);
// Convert HTML entities prior to displaying
printf("%s", (htmlentities($row['link'])));
} else {
printf("Failed");
}
?>Thanks