thme01 Posted October 21, 2011 Share Posted October 21, 2011 hey there peoples i have a bit of a problem with my php code. when i click on the name it wont play the video. but if i click on the thumbnail it plays here is the code echo "<div class='Video_thumbnail'>"; echo "<a href='/Video.php?id={$row['id']}'>"; echo "<img src='http://i.ytimg.com/vi/{$row['link']}/hqdefault.jpg' width='220' height='170' alt='click' /></a>"; echo "<br>"; echo "</br>"; echo "<a href='/Video.php?={$row['id']}'>"; echo "{$row['navn']}</a>"; echo "</div>"; Link to comment https://forums.phpfreaks.com/topic/249536-link-wont-work-when-click-on-text-but-works-if-i-click-on-thumbnail/ Share on other sites More sharing options...
PFMaBiSmAd Posted October 21, 2011 Share Posted October 21, 2011 You are missing the id in the query-string part of the URL - ?id=value Link to comment https://forums.phpfreaks.com/topic/249536-link-wont-work-when-click-on-text-but-works-if-i-click-on-thumbnail/#findComment-1281137 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.