5 or $mov_s == "") { $mov_s == 5; } if(!$mov_s) { $mov_s = 5; } if($v == null) { if($c != 'tv') { $tableSQL = 'movie_uploads WHERE `mov_source` = '.$mov_s; } else { $tableSQL = 'tv_uploads'; } $sql = "SELECT `video_id` FROM $tableSQL ORDER by `order` DESC Limit 0 , 1"; $countsql = mysql_query($sql); $vid=mysql_fetch_row($countsql); $v = $vid[0]; if(!$v) { Header("Location: video.php"); exit(); } } ?> 2011凱渥夢幻之星Catwalk Competition