Exemplo n.º 1
0
function gestionarPropuesta($id, $a)
{
    $datos = datosPropuestaGastronomica($id);
    $fila = mysqli_fetch_assoc($datos);
    $id = $fila["idpincho"];
    $nombre = $fila["nombrepincho"];
    $foto = $fila["fotopincho"];
    $descripcion = $fila["descripcionpincho"];
    $ingredientes = $fila["ingredientesp"];
    $precio = $fila["precio"];
    $pincho = new Pincho();
    return $pincho->modificar($id, $nombre, $foto, $descripcion, $ingredientes, $precio, $a);
}
function modificarDatosPincho($idpincho, $nombrepincho, $fotopincho, $descripcionpincho, $ingredientesp, $precio)
{
    $pincho = new Pincho();
    return $pincho->modificar($idpincho, $nombrepincho, $fotopincho, $descripcionpincho, $ingredientesp, $precio, 'N');
}