I'm confused why you would do this. Why not just $num_results = mysql_num_rows($result); where $result = mysql_query(); ? I'm confused. David www.confluentforms.com ----- Original Message ----- From: "Benjamin" <kalos at carolina.rr.com> > A simple way to get the number of rows your query has returned (using Perl > & mySQL)