$sql = "UPDATE ".TB_PREF."stock_master SET material_cost=".db_escape($material_cost).",
labour_cost=".db_escape($labour_cost).",
overhead_cost=".db_escape($overhead_cost).",
- last_cost=".db_escape($last_cost)."
WHERE stock_id=".db_escape($stock_id);
db_query($sql,"The cost details for the inventory item could not be updated");