1ra Versión

This commit is contained in:
MarcosFlorSalcedo
2026-07-14 18:24:27 -03:00
commit 8ec55e40fc
86 changed files with 15839 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
$data = json_decode(file_get_contents("php://input"), true);
require_once 'conexion.php';
$descripcion = $data['descripcion'];
$precio_venta = $data['precio_venta'];
$precio_compra = $data['precio_compra'];
$cantidad = $data['cantidad'];
$stmt = $conexion->prepare("INSERT INTO productos (Descripcion, Precio_Venta, Precio_Compra, Stock_Disponible) VALUES (?, ?, ?, ?)");
$stmt->bind_param("sddi", $descripcion, $precio_venta, $precio_compra, $cantidad);
$stmt->execute();
echo "Producto agregado correctamente.";
?>