prepare("SELECT tag FROM blogTags ORDER BY RAND() LIMIT 20")) { $stmt->execute(); $result = $stmt->get_result(); while ($row = $result->fetch_assoc()){ if (strpos($row['tag'],'Blog')===false) { $blogTags[] = $row; } } } ## Get the 5 most popular (most viewed) Posts not including this post if ($stmt = $mysqli->prepare("SELECT ID,blogTitle,blogPublishDate,blogImage,MAX(blogViewed),blogViewed FROM blog WHERE blogVisible='Y' GROUP BY blogViewed DESC LIMIT 5")) { $stmt->execute(); $result = $stmt->get_result(); while ($row = $result->fetch_assoc()){ ###create one array of reward names and values $blogPopularArray[] = $row; } } /* echo "
";
	print_r($blogPopular);
echo "
"; */ include 'searchBlog.php'; ?> Kintrye Property Company - News & Blog
Found : 1){echo $numArrays;?> Posts  |   Post  |  No Results Showing Articles " . $_GET['category'].""; } ?>
  • views

...

    1){ ?>
  • Prev
  • $displayInt){ $x=1; while($x <= $perPage){ ?>
  • ">
  • $_GET['page']){ ?>
  • Next
  • 1){ ?>
  • Next