Good afternoon, I'm trying to capture a value from my database through a query but this gives me an error, the code is as follows:
$consultarRepresentante = mysqli_query($conexion,
"select max(id_representante) from representantes") or die
("Problemas en el query".mysqli_error($conexion));
$registros = mysqli_fetch_array($consultarRepresentante);
echo $registros;