javascritp

Solutions on MaxInterview for javascritp by the best coders in the world

showing results for - "javascritp"
Fawn
28 Aug 2017
1function Productos(){
2    require_once("conexion.php");
3    $data = file_get_contents("productos.json");
4    $producto = json_decode($data, true);
5    foreach($producto as $a){
6        $consulta = $conn->prepare("Insert into productos values(?,?,?)");
7        $consulta->bindParam(1,$a["codigo"]);
8        $consulta->bindParam(2,$a["Nombre"]);
9        $consulta->bindParam(3,$a["descripcion"]);
10        $consulta->execute();
11    }
12}
13
similar questions
queries leading to this page
javascritp