if($_REQUEST["page"] > 0){
$start = ($_REQUEST["page"]*40);
}else{
$start = 0;
$_REQUEST["page"] = 0;
}
$next = $_REQUEST["page"] + 1;
$stmt = $pdodb->prepare("SELECT girls.ID as ID,forum.ID as fid,forum.dating,forum.lastcomment, forum.classified, forum.titleis,forum.descis,forum.seox,forum.country,forum.lastcommentpic,forum.question, girls.mainpic,forum.timeposted,girls.username,forum.nreplies,forum.forum,forum.forumseo,forum.votepoints,forum.views,forum.nreplies,forum.votes,forum.mainpic as newspic,urlis FROM forum LEFT JOIN girls ON girls.ID=forum.mid ORDER BY forum.ID desc LIMIT :start,40");
$stmt->bindParam(':start',$start,PDO::PARAM_INT);
$stmt->execute();
?>
while($i3=$stmt->fetch()) {
include('../newsitem.php');
}
echo '
';
echo '
';
?>