Recommended Reading

$value) { ${$key} = stripslashes(htmlspecialchars_decode($value, ENT_QUOTES)); } $link = ''; $link_end = ''; echo '
'; echo '

' . $link . $title . $link_end . '

'; // listing name and link to listing page echo '

' . $link . 'Courtesy of ' . $magazine . ', By ' . $author . $link_end . '

' . "\n"; // listing status echo '

' . nl2br($summary) . '   ' . $link . 'Read More' . $link_end . '

'; echo ''; } } else if ($_GET['ID'] || !$_GET['ID']) { if ($_GET['ID']) { $where = " ID='" . $_GET['ID'] . "'"; } else if (!$_GET['ID']) { $where = " archive='yes'"; $orderby = "ORDER BY date DESC, ID DESC"; } $newsletter_query = mysql_query("SELECT * FROM articles WHERE $where $orderby"); $newsletter_results = mysql_fetch_array($newsletter_query); foreach ($newsletter_results as $key => $value) { ${$key} = stripslashes(htmlspecialchars_decode($value, ENT_QUOTES)); } echo '

' . $newsletter_results['title'] . '

'; // echo '

' . $newsletter_results['title'] . '

'; echo '

Courtesy of ' . $magazine. '
By ' . $author . '

'; $stories_query = mysql_query("SELECT * FROM articles_stories WHERE newsletter_id='" . $newsletter_results['ID'] . "' ORDER BY number ASC"); while ($stories_results = mysql_fetch_array($stories_query)) { $count++; echo '

'; if ($stories_results['photo']) { $size = getimagesize($uploaddir . $stories_results['photo']); $height = $size[1]; $width = $size[0]; echo '' . stripslashes($stories_results['title']) . ''; unset($height); unset($width); } if ($stories_results['link_text']) { $link = explode($stories_results['link_text'], $stories_results['text']); if ($link[1]) { echo nl2br(stripslashes($link[0])) . ' ' . $stories_results['link_text'] . ' '; $link_count = 1; while ($link[$link_count]) { echo nl2br(stripslashes($link[$link_count])); $link_count++; } } else { echo nl2br(stripslashes($stories_results['text'])); } } else { echo nl2br(stripslashes($stories_results['text'])); } if ($stories_results['pdf']) { $size = getimagesize($uploaddir . $stories_results['pdf']); echo '

More Info: PDF Link'; } echo '

'; } // stories $next_query = mysql_query("SELECT ID FROM articles WHERE date >= '" . $newsletter_results['date'] . "' AND ID > '" . $ID . "' AND archive='yes' ORDER BY date ASC, ID ASC"); $next_results = mysql_fetch_array($next_query); $prev_query = mysql_query("SELECT ID FROM articles WHERE date <= '" . $newsletter_results['date'] . "' AND ID < '" . $ID . "' AND archive='yes' ORDER BY date DESC, ID DESC"); $prev_results = mysql_fetch_array($prev_query); echo '
'; if ($prev_results['ID']) { echo 'previous'; } else { echo ' '; } echo '
'; echo '
article index
'; echo '
'; if ($next_results['ID']) { echo 'next'; } else { echo ' '; } echo '
'; } ?>
Site Map MLS Reciprocity

© WAYNE PASCO SUITE     Disclaimer


Site Designed By : Atomic Eye Design
Site Maintained By : Clayrose Internet Creations