resetErrorList(); if ($type == "dealer" or $type=="custom"){ //article is a dealership article //Grab all info on the article based on the ID $query_art = "SELECT * FROM articles_custom, club_links WHERE articleID=$url_art AND rel_clubID=club_linkID AND domain='$subdomain'"; $result_art = db_query($query_art) or die($article_valform->raiseError("result", "Database Error - 1")); } else { //Grab all info on the article based on the ID $query_art = "SELECT * FROM articles_edited WHERE articleID=$url_art AND clubid=".$clubinfo['clubid'].""; $result_art = db_query($query_art) or die(mysql_error()); if (db_numrows($result_art)==0){ //Grab all info on the article based on the ID $query_art = "SELECT * FROM articles WHERE articleID=$url_art"; $result_art = db_query($query_art) or die($article_valform->raiseError("result", "Database Error - 1")); } } //Place all results into an array $line_art = db_fetch_array($result_art); if ($type=="dealer"){ $picture = $subdomain.'/'.$line_art['thumb']; $monthyear = ""; } else { $picture = $line_art['icon']; $split_date = split("-", $line_art['art_date']); $monthyear = $split_date[1].$split_date[0]; $type="none"; } if ($line_art['published']=="N"){ $line_art['title'] = "Sorry this article is unavailable"; $line_art['description'] = ""; $line_art['body'] = ""; $line_art['icon']="N"; } ?>