$query = "SELECT COUNT(*) as row_count FROM profiles";
$result = mysql_query($query) or die(mysql_error());
$total = mysql_fetch_object($result);
$counter = $total->row_count;
The code above will tell me how many rows there are that ain't been deleted
but how do i find out how many rows there are altogether?
in admin php it says next auto increment number is 18..
but the above script it returning 6 because 12 rows have been deleted
so how do i get the script to say 18 ?
thanks
sharon 
__________________
mysql_connect("localhost", "brain", "sharon") or die(mysql_error());
mysql error: brain doesn't exist!
|