Ver original//$totalregistros=mysql_num_rows($result);echo $totalregistros;
Ver original$row=mysql_fetch_array($result);