prepare('SELECT blog_posts_seo.postID FROM blog_posts_seo, blog_post_cats WHERE blog_posts_seo.postID = blog_post_cats.postID AND blog_post_cats.catID = :catID'); $stmt->bindValue(':catID', $row['catID'], PDO::PARAM_INT); $stmt->execute(); $count = $stmt->rowCount(); if (empty($count)) { echo '
Aucun torrent dans cette catégorie.
'; } //pass number of records to $pages->set_total($stmt->rowCount()); $stmt = $db->prepare(' SELECT blog_posts_seo.postID, blog_posts_seo.postHash, blog_posts_seo.postTitle, blog_posts_seo.postAuthor, blog_posts_seo.postSlug, blog_posts_seo.postLink, blog_posts_seo.postDesc, blog_posts_seo.postTaille, blog_posts_seo.postDate, blog_posts_seo.postViews, blog_posts_seo.postImage FROM blog_posts_seo, blog_post_cats WHERE blog_posts_seo.postID = blog_post_cats.postID AND blog_post_cats.catID = :catID ORDER BY postID DESC '.$pages->get_limit()); $stmt->bindValue(':catID', $row['catID'], PDO::PARAM_INT); $stmt->execute(); while($row = $stmt->fetch()){ echo ''; } echo ''; echo $pages->page_links('c-'.html($_GET['id']).'&'); } catch(PDOException $e) { echo $e->getMessage(); } ?>