I use $mycounter, not saying it is pretty. But if you have a whole bunch of stuff 
deleted, your last id might be worth a lot more than the actual number of rows.

$myconnection = mysql_connect($server,$user,$pass);

$news = mysql_query('select * from '.$table.' where '.$where.' order by id asc');
 $mycounter = 0;
 while ($mydata = mysql_fetch_object($news))

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to