<?php
include_once '../inc/functions.php';

$pharmacyId   =$_GET['pharmacy'];
$responsable  =$_GET['responsable'];
$email        =$_GET['email'];
$tel          =$_GET['tel'];
$provinceId   =$_GET['province'];

$pharmacy = R::load( 'pharmacies', $pharmacyId );

$pharmacy->responsable = $responsable;
$pharmacy->email       = $email;
$pharmacy->tel         = $tel;
$pharmacy->province_id  = $provinceId;

R::store($pharmacy);

?>