<snip> SELECT @totalVotes:=COUNT(titleid) FROM movieratings </snip>
Thanks for the reply. Alas, the above query syntax gives me an error 1064. -- Ian Evans Chairman & Executive Producer Digital Hit Entertainment http://www.digitalhit.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php