how to count all rows belonging to userid?

eabhi200k

New Member
\[code\]$userid = $_SESSION[userid]$sqll = mysql_query("SELECT count(id) FROM entries WHERE userid='$userid'");\[/code\]Is using \[code\]count(id)\[/code\] efficient? Or is there a better way?
 
Back
Top