Item has been deleted"; } //count the tips $temp = q("SELECT COUNT(1) AS cnt FROM romance_guide WHERE status = 1", $SESS_DBH); $results = mysql_result($temp, 0, cnt); $numpages = $results < $numperpage ? 1 : ceil($results / $numperpage); $startnumber = ($n * $numperpage) - $numperpage; $endnumber = $numperpage; $limit = "LIMIT $startnumber, $endnumber"; //next prev if($n != 2) $prev = ""; else $prev = ""; $next = ""; //get the stories $result = q("SELECT title, tip, id, dateadded FROM romance_guide WHERE status = 1 $limit", $SESS_DBH); $pagetitle = "page $n Dating Success Stories"; $meta_description = "page $n of our dating and romance guide. Dating tips and advice from our users to help make your online dating experience successful"; $meta_keywords = "romance guide, dating tips online dating advice"; include("$root/includes/header.php"); ?>
Romance Guide
".$errorstring.""); if($n == 1) echo "

Welcome to our romance guide section, this is a collection of dating tips and advice submitted by our users! So why not use the experience of some of our daters and start reading the romance guide now! If you have a piece of advice for our members why not submit it by clicking here

"; if($numpages > 1){ echo "
"; if($n > 1) echo $prev; if($n < $numpages) echo $next; echo "

"; } ?>
Pages: $x "; else{ if($x == 1) echo "$x "; else echo "$x "; } } ?>

There are currently no Romance tips on the site"; else{ while($row = mysql_fetch_assoc($result)){ $id = intval($row['id']); $title = $row['title']; $tip = $row['tip']; echo "
$title

".nl2br($tip)."

"; if($_SESSION['ismod'] == 2 || $_SESSION['ismod'] == 3) echo "[delete][edit]"; echo "

"; } } if($numpages > 1){ echo "
"; if($n > 1) echo $prev; if($n < $numpages) echo $next; echo "

"; } ?>