$sql = "SELECT count(u_id) AS num_replies FROM `replies` WHERE `u_id`='".$uid."'";
$res = mysql_query($sql) or die(myqsl_error());
Will that return the number of replies a user with id $uid has made? If not, can anyone suggest something that will?
Thx for the help.