<?php
require_once('../Connections/connect.php');
$sql="select st.* from request1 re ,stock st left join stock st ON st.id=re.id_pasadu";
$sql = "UPDATE st SET st.count = st.count - 1 WHERE st.id = $_GET[re.id_pasadu]";
$result = mysql_query($sql);
?>