$sonid = mysql_fetch_assos(mysql_query("SELECT * FROM siparis_detay ORDER BY id DESC LIMIT 1")); $son = $sonid['id'];