$sonuc=mysql_fetch_array(mysql_query("select NextTypeName from productType where OldTypeName='$materialType' and ProductTypeName='$productTypeName'"));
        $array[0]=$sonuc["NextTypeName"];
        $sonuc=mysql_fetch_array(mysql_query("select BasePrice from materials where TypeName='$materialType'"));
        $array[1]=$sonuc["BasePrice"];
        echo json_encode($array);
ajaxın gittiği php kodları