Count and print the number of rows in a table.

This will count the number of records in a table.

So if you want to know how many nodes of a certain type you have just change 'node' to the name of your table.

Snippet:

<?php
   $result
= mysql_query("SELECT * FROM node");
  
$num_rows = mysql_num_rows($result);
   print
"<h4><strong>Number of Nodes: </strong>$num_rows</h4>";
?>