Jacobb123
07-10-2007, 12:37 AM
This is pretty simple but I am having problems with this area of PHP. The following code keeps giving me an error
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home/jacobb2/public_html/music.php on line 144
<?php
$videoResult = mysql_query("SELECT * FROM video_members ORDER BY posted_on DESC LIMIT 3")or die("Could Not Select Newest Videos ".mysql_error());
while($Video = mysql_fetch_array($videoResult)){
if (file_exists($Video['video_thumbnail'])) {
$videoSrc = $Video['video_thumbnail'];
$videolink =$Video['id'];
} else {
$videoSrc = "videos/noPic.gif";
}
echo '<div>';
echo '<img src="'.$videoSrc.'" width="64px" height="64px" alt="" title="" style="float:left;"/>';
echo '<a href="view_video.php?id='$videolink'">'.$Video['video_title'];Echo '</a>';
echo '</p>';
echo '</div><br /><br /><br /><br />';
}
?>
Can someone help me out and tell me what I am doing wrong?
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home/jacobb2/public_html/music.php on line 144
<?php
$videoResult = mysql_query("SELECT * FROM video_members ORDER BY posted_on DESC LIMIT 3")or die("Could Not Select Newest Videos ".mysql_error());
while($Video = mysql_fetch_array($videoResult)){
if (file_exists($Video['video_thumbnail'])) {
$videoSrc = $Video['video_thumbnail'];
$videolink =$Video['id'];
} else {
$videoSrc = "videos/noPic.gif";
}
echo '<div>';
echo '<img src="'.$videoSrc.'" width="64px" height="64px" alt="" title="" style="float:left;"/>';
echo '<a href="view_video.php?id='$videolink'">'.$Video['video_title'];Echo '</a>';
echo '</p>';
echo '</div><br /><br /><br /><br />';
}
?>
Can someone help me out and tell me what I am doing wrong?