hey there, thanks for the mail and now the answer. Maybe there is a mistake in my code. i can post it here:
<?php
include "/users/alfq/www/langweilich/config.inc.php";
$conn = mysql_connect("$host", "$user", "$password"); mysql_select_db("$datenbank", $conn) or die("Fehler:".mysql_error($conn));
$sql = "SELECT * FROM `$dbk_links` WHERE ID =" . $_GET['ID']; $ergebnis = mysql_query($sql, $conn) or die("Fehler:".mysql_error($conn)."<br><br>$sql");
while($row=mysql_fetch_assoc($ergebnis)) {
$videoid = $row['ID']; $title = $row['beschreibung'];
}
?>
<?php
/*
YOUTUBE
*/
$sql = "SELECT * FROM `$dbk_links` WHERE provider = 'youtube' && ID =" . $_GET['ID']; $ergebnis = mysql_query($sql, $conn) or die("Fehler:".mysql_error($conn)."<br><br>$sql");
while($row=mysql_fetch_assoc($ergebnis)) {
$provider = $row['provider']; $kategorie = $row['kategorie']; $link = $row['link'];
define("YOUTUBE_WIDTH", 425); define("YOUTUBE_HEIGHT", 355); $video_youtube = "<object type=\"application/x-shockwave-flash\" data=\"http://www.youtube.com/v/###URL###\" width=\"".YOUTUBE_WIDTH."\" height=\"".YOUTUBE_HEIGHT."\"><param name=\"movie\" value=\"http://www.youtube.com/v/###URL###\" /></object>";
$output_video = str_replace("###URL###", $link, $video_youtube);
echo "<b>";
echo $row['beschreibung']; echo "</b><br><br>"; echo $output_video; echo "<br><br><br><br>";
}
?>
So first on top there is your script. Hope you can help me. Maaybe there something wrong with $_GET['ID']?? Really dont know but hope you can help me.
thanks alfq |