<?php 
session_start();
include_once '../conexao/index.php';

/*Variaveis do Sistema*/
/*********************************************/
$userID = $_SESSION['idUsuario'];
$userNOME = $_SESSION['nomeUsuario'];
$userCATE = $_SESSION['categoriaUsuario'];
/*********************************************/

$valor = $_POST['valor'];
$id = $_POST['id'];

$sql = "UPDATE ct_artigos_temp SET qtd = '$valor', total = qtd * preco  WHERE id = '$id' AND user = '$userID'";
$rs = mysqli_query($db, $sql);	


