prepare("SELECT fname,mainpic,views FROM girls WHERE approved > 0 ORDER by views desc LIMIT :startrow,24"); $stmt->bindValue(':startrow', $startrow,PDO::PARAM_INT); $stmt->execute(); echo '
'; while($i3=$stmt->fetch()) { $count++; echo '
'; echo '
'.$i3["fname"].'
'.$i3["views"].' Views
Rank: #'.$count.'
'; echo '
'; } echo '
'; ?>
rowCount() > 0){ ?>
Show Next Models