'; echo$logo; echo''; echo'
'; echo'
'; $query = "SELECT * FROM links WHERE link_column='1'" . "ORDER BY link_order asc"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)) { $link_id = $row['link_id']; $link_title = $row['link_title']; $link_title = str_replace('&', '&', $link_title); echo "".$link_title."

"; $qr = "SELECT * FROM links_list WHERE link_category_id = '".$link_id."'"; $rs = mysql_query($qr) or die(mysql_error()); while ($row = mysql_fetch_array($rs)){ echo'_'; $link = $row['link']; $link_display = $row['link_display']; $link_display = str_replace('&', '&', $link_display); echo"".$link."
"; } echo"

"; } echo'
'; echo'
'; $query = "SELECT * FROM links WHERE link_column='2'" . "ORDER BY link_order asc"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)) { $link_id = $row['link_id']; $link_title = $row['link_title']; $link_title = str_replace('&', '&', $link_title); echo "".$link_title."

"; $qr = "SELECT * FROM links_list WHERE link_category_id = '".$link_id."'"; $rs = mysql_query($qr) or die(mysql_error()); while ($row = mysql_fetch_array($rs)){ $link = $row['link']; $link_display = $row['link_display']; $link_display = str_replace('&', '&', $link_display); $link = str_replace('&', '&', $link); echo"".$link."
"; } echo"

"; } echo'
'; echo'
'; echo''; echo''; echo$close_html; ?>