$header[page_title] "; echo " "; echo " "; ?> $header[page_header]"; //Selecting all the Advertise entries from the DB, sorted by display order... $sql = "SELECT * FROM privacy_policy_62057 ORDER BY display_order"; $result = mysql_query($sql); echo ""; //Going through each entry and displaying it... while ($row = mysql_fetch_array($result)) { echo ""; } echo "
"; //If the image exists and the image variable isn't blank, display it... if (file_exists("../images/$row[img]") && $row[img] != "") { if($row[http] != ""){ if($row[link_type] == "external") $img_src = ""; }else{ $img_src = ""; } if($row[img_align] == "center") echo "
$img_src'/images/$row[img]' $row[img_size] align=$row[img_align] hspace='5' vspace='5' border='0' $img_src_back
"; else echo "$img_src'/images/$row[img]' $row[img_size] align=$row[img_align] hspace='5' vspace='5' border='0' $img_src_back"; } //If the title isn't blank, display it... if ($row[title] != "") echo "$row[title]
"; //If the paragraph isn't blank, display it... if ($row[paragraph] != "") echo "$row[paragraph]
"; //If the bulleted list isn't blank, display it... if ($row['list'] != "") echo "$row[list]"; //If the PDF title isn't blank, & the file exists & the file variable isn't blank, display it... if ($row[pdf_title] != "" && file_exists("../files/$row[pdf]") && $row[pdf] != "") echo "$row[pdf_title]
"; //If the Link title isn't blank, & the http isn't blank, display it as an external link... if ($row[link_title] != "" && $row[http] != "") { if($row[link_type] == "external") echo "$row[link_title]
"; else echo "$row[link_title]
"; } if ($row[email] != "") echo "$row[email]
"; echo "

"; ?>