From: "Richard Davey" <[EMAIL PROTECTED]> > AB> $rows=mysql_query("select count(*) as count from users"); > AB> $count=mysql_fetch_array($rows); > > There's no need to extract the result into an array in this instance, > why bother giving PHP that extra overhead? Unless the query failed, > the value count will *always* exist at row 0, so you can simply do: > > $count = mysql_result($rows, 0, 'count');
Or even just $count = mysql_result($rows,0); ;) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php