shotting.cc

DEFCON-1

HOME

WELCOME TO SHOTTING.CC

$sql = "SELECT articleID,COUNT(*) as count FROM Visits GROUP BY articleID ORDER BY articleID DESC;"; $sql = "SELECT *,COUNT(*) as count FROM `main` LEFT JOIN `Visits` on `main`.primary = `Visits`.ArticleID GROUP BY articleID ORDER BY articleID DESC;"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { echo "
  • ".$row["count"]." : " . $row["name"] . " : " . $row["Browser"] . ""; } } else { echo "0 results"; }