I have a Mysql database, where the records are sorted by positions. How do I display. The data that is before a position, and not show the data of the following positions?
PHP invoke data
$r_ruta = $_GET["r_ruta"];
$jornada = $_GET["jornada"];
$query = mysqli_query($con, 'SELECT * '.
'FROM escolar '.
"WHERE r_ruta = '$r_ruta' ".
"AND jornada = '$jornada' ".
'ORDER BY pos ASC');