hayde jebneha min Form_Items
----------------------------
$q = "select IFNULL(GetLastValuesFunc('".$Base1."', '".$Base2."', '$Item_Code'),0) as LastcostPrice2";
	                   $res = mysql_query($q,$connection) or die(mysql_error());
					   $rw = mysql_fetch_row($res);
					   $ct+=1;
				       $stylefont='style15';


hayde jebneha min Form_Items
-----------------------------
$qu="select QtyExistsPerCostCent('$Item_Code','',now(),null,'','','',$usercostcent)"; 
					   $result=mysql_query($qu,$connection) or die(mysql_error());	
			           $row=mysql_fetch_row($result);

berja3 bel7a2 $usercostcent bell Form_Items bzid 

$querydflcostcent="select costcent_code from ".$_SESSION['dbLabel'].".loginstk where user_account='".$_SESSION['useraccount']."' and default_costcenter=1 ";	
	//echo$querydflcostcent;
	$resultdflcostcent=mysql_query($querydflcostcent,$connection) or die(mysql_error());
	$rowcount=mysql_num_rows($resultdflcostcent);
	if($rowcount==0 || $rowcount > 1){
		//echo"inside";
		$usercostcent="null";
	}
	else{
		$rowscostcent=mysql_fetch_array($resultdflcostcent);
			extract($rowscostcent);
			if($costcent_code != '') 
			$usercostcent="'".$costcent_code."'";
	} 





<td width='fixed'>".$Item_Code."</td>
					 <td width='fixed'>".$Item_Description."</td>
					 <td width='15%'>".$Item_SellingPrice1."</td>
					 <td width='15%'>".$row[0]."</td>              deyman [0]
					 <td width='15%'>".$Item_Barcode."</td>
					 <td width='15%'>".$Item_Barcode2."</td>
					 <td width='15%'>".$rw[0]."</td>              deyman [0]
					 <td width='15%'>".$group_name."</td>
					 <td width='15%'>".$SubGroup_Name."</td>
					 <td width='15%'>".$Item_Group."</td>


