$query=mysql_query("select count(*) as total from personal") or die (mysql_error()); $total= mysql_result($query,0);