what does
$item[stok_toplam]
give you, and what do you need? also, you should use quotes around stok_toplam
, because otherwise php thinks that you're trying to reference a constant.