how to retrieve jwplayer video player files from the database

Discussion in 'JavaScript' started by macaela, Jul 11, 2011.

  1. #1
    Hi i am trying to load video to jwplayer you can do it from by putting the name of the files directly into the script like this

    <a href="#" onClick="jwplayer().load({'file': 'video_SD.mp4', 'hd.file': 'video_HD.mp4'})">
    Code (markup):
    but now i want the names to come from the database so i tried it like this
    echo "<td><a href=\"#\" onClick=\"jwplayer().load('file':" . $row['first_vidoe'] . "'file.hd':" . $row['2ndvideo_HD'] .  "' )\">" . $row['FirstName'] . "<a/></td>";  echo "<td>" . $row['Age'] . "</td>";
    Code (markup):
    but it doesnt upload the videos
    can somenone please help please
    thanks in advance
     
    macaela, Jul 11, 2011 IP
  2. macaela

    macaela Active Member

    Messages:
    181
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    this my site
    http://eurico.co.uk/droptest/getuser.php#

    the problem is the following line i am trying to retrive data from the database

    <code>echo "<td><a href=\"#\" onClick=\"jwplayer().load('file':" . $row['FirstName'] . "'file.hd':" . $row['FirstName'] . "' )\">" . $row['FirstName'] . "<a/></td>"; echo "<td>" . $row['Age'] . "</td>";
    </code>

    the video on the site that is meant to work is the link name peter griffin
    hofbell30732_SD.mp4
     
    macaela, Jul 11, 2011 IP