<?php
$consulta = consultar($_GET["ruc"]);
function consultar($ruc_prov){
include("Conexion.php");
$s="SELECT * FROM productos WHERE no='".$ruc_prov."' ";
$rs= mysqli_query($enlace,$s);
$filas = mysqli_fetch_assoc($rs);
return [
$filas["ruc"],
$filas["direccion"],
$filas["nombre"]
];
}
?>
This is my code I do not know because I get that error supposedly it's because I receive that my query is false but this is the value in my database