avs-code / PREM-Podium-race-E-manager

Description PREM (Podium race e manager) is management software for races and race leagues. It can be used to create overviews of race results. Based on Paddock 7.10beta by: demontpx
https://arv187.github.io/PREM-Podium-race-E-manager/
GNU General Public License v3.0
5 stars 1 forks source link

Video isn't working #2

Closed avs-code closed 8 years ago

avs-code commented 8 years ago

Video isn't working video table: id video_name video_url 1 Blancpain https://www.youtube.com/embed/NmnkRlDhwtA

PHP file:

<? if (!defined("CONFIG"))
    exit(); ?>
<?
$video = "SELECT `video`.`video_name` FROM video ORDER BY `video`.`id` DESC LIMIT 0 , 30";
$result = mysql_query($video);
if (!$result) {
    show_error("MySQL Error: " . mysql_error() . "\n");
    return;
}
?>
<?
while ($sitem = mysql_fetch_array($result)) { ?>
<?php
$url = 'video_url';
?>

<iframe id="ytplayer" type="text/html" width="420" height="345"
    src="<?php echo $url; ?>" frameborder="0" allowfullscreen></iframe>;
avs-code commented 8 years ago

Great inguni, thank you very much

http://sparkadsl.0lx.net/pruebas/?page=show_videos