function Posicion($valor, $tabla){ $Consulta = mysql_query("SELECT * FROM $tabla"); $i = 1; while($row=mysql_fetch_assoc($Consulta)){ if($row[0] == $valor) break; $i++; } return $i;}