Actually, forget I asked that question. I'm not overly familiar with the DB functionality in php, but after playing around and setting up a test database I came up with this:
<?
$db = mysql_connect("hostname","username");
mysql_select_db("dbname",$db);
$result=mysql_query("select count(*) AS column_name from table_name");
list($bleah) = mysql_fetch_row($result);
print $bleah;
?>
(I originally substituted "bleah" for "count" to make sure that it wasn't a reserved word or something like that)
That returns the number of rows, is that what you were after? It was just a simple syntax thing. Check out http://au.php.net:81/manual/function.list.php
Cheers