• 0

Count Entries in MySQL


Question

How can i make a script count the number of entries, that have "wallpapers" in the Type row.. a table so like in a download script it would show how meany files i have

Edited by aaronsam
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

This is a lot faster.

$sql = "SELECT COUNT(*) FROM table_name WHERE DownloadType='wallpaper'";
$result = mysql_query($sql);
$count = mysql_result($result, 0);

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.