E eabhi200k New Member Jun 10, 2012 #1 \[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?
\[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?