while ($story = mysql_fetch_array($result)) { if ($cnt >= 2) $cnt = 0; $cnt = $cnt + 1; $audio_error = ""; $video_error = ""; $error = ""; $audio_error = (substr($story['audio'],0,7)); $video_error = (substr($story['video'],0,7)); if (($audio_error =="Invalid") || ($video_error =="Invalid")) { if ($audio_error =="Invalid") $audio_error = "$audio_error
"; if ($video_error =="Invalid") $video_error = "$video_error
"; $error ="yes"; } print ''; if ($error == "yes"){ print ' '; print "
".$story['headline']."
".$audio_error.$video_error."
"; }else{ print "".$story['headline'].""; } print ''; print $story['writer']; print ''; print date('M d, y', $story['modified']); print '
'; print date('H:i', $story['modified']); print '
'; if ($story[published]) { print '[unpublish]'; } else { if ($error!= "yes"){ print '[publish]'; print '[delete]'; }else{ }} print '[edit]  '; print ''; }