/* function commentCount($n) { mysql_connect ('localhost', 'bshort_bshort', 'opfehLpq') or die (''); # Select a default database to work with mysql_select_db ('bshort_default') or die ('The database specified in database_name must exist and must be accessible by the user specified in mysql_connect'); # make a query on a table in your database $query = "SELECT Count(CommentID) FROM comments where PostID = " . $n . " order by CommentID"; #echo $query; $query_result_handle = mysql_query ($query) ; $num_of_rows = mysql_num_rows ($query_result_handle); # use mysql_fetch_row to retrieve the results for ($count = 1; $row = mysql_fetch_row ($query_result_handle) ; ++$count) { $comments = $row[0]; } return $comments; } */ ?>