Skip to content

Instantly share code, notes, and snippets.

Created Jan 13, 2021
What would you like to do?
function quitarProductoDelCarrito($idProducto)
$bd = obtenerConexion();
$idSesion = session_id();
$sentencia = $bd->prepare("DELETE FROM carrito_usuarios WHERE id_sesion = ? AND id_producto = ?");
return $sentencia->execute([$idSesion, $idProducto]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment