Merhaba arkadaşlar apahce serverda godaddy de aşağıdaki kodda işlem yağtığımda urun ekleme yaparken 406 hatası alıyorum sebebı ne olabılır acaba ? <?php $urunIslem = 'Ekle'; if ( $VT->sorgu( "SELECT * FROM urunler a INNER JOIN urun_rez_ayar b ON a.urunID = b.rezID WHERE a.urunID = '".$_GETPOST['urunID']."' LIMIT 1;") ) { $urun = $VT->son_sonuc[0]; if ( $VT->sorgu("SELECT * FROM ilave_bilgi WHERE urunID = '".$_GETPOST['urunID']."'") ) { foreach ($VT->son_sonuc as $key => $value){ if ( $value->bilgi_ayrim ){ $urun->ekBilgi[$value->bilgi_ayrim][$value->bilgi_anahtar][$value->bilgiID] = $value->bilgi_deger; } else { $urun->ekBilgi[$value->bilgi_anahtar][$value->bilgiID] = $value->bilgi_deger; } } } $urunIslem = 'Duzelt'; function ekBilgi($key,$dizi = false){ global $urun; if ( $dizi ){ return $urun->ekBilgi[$key]; } else { return current($urun->ekBilgi[$key]); } } } function kategoriDiziListele($ustID = '0'){ global $VT; $array = array(); $where = 'kategoriTip = "urun"'; $where .= ' AND kategoriUstID = "'.$ustID.'" '; if ( $VT->sorgu('SELECT * FROM kategori WHERE '. $where) ){ foreach( $VT->son_sonuc as $key => $value ){ $array[$value->kategoriID]['AD'] = $value->kategoriAdi; $array[$value->kategoriID]['SAYI'] = $value->kategoriSayi; if ( $tempArray = kategoriDiziListele($value->kategoriID) ){ $array[$value->kategoriID]['ALT'] = $tempArray; unset($tempArray); } } } return $array; } function kategoriListele($array,$sayac = 0,$selectID = ''){ $select = ''; foreach ( $array as $key => $value ){ $selected = ''; if ( $selectID == $key ){ $selected = 'selected="selected"'; } $select .= '<option '.$selected.' value="'.$key.'">'.str_repeat('--', $sayac) . $value['AD'].'</option>'; if ( isset($value['ALT']) ){ $select .= kategoriListele($value['ALT'],$sayac+1,$selectID); } } return $select; } $kategoriList = kategoriDiziListele(); if ( $VT->sorgu('SELECT * FROM ulke') ){ $ulke = $VT->son_sonuc; } ?> <script language="javascript"> var sayac = 0; $(document).ready(function(){ $('.dahaResim').click(function(){ $('#dahaResim').append('<tr><td>Üye Resim</td><td><input class="textbox" type="file" name="ilanResim[]" style="width:200px;" maxlength="250" value="" /></td></tr><tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr>'); }); }); function FormKontrol(){ var form = document.myform; var mSg; if (!form.uyeEposta.value){ mSg = "Lütfen eposta adresi giriniz"; } if (mSg) { errorDivStart(mSg); return false; } else { return true; } } $(document).ready(function(){ $('#kategoriID').change(function(){ $.ajax({ type: "POST", url: "<?php echo SiteAdi ?>?p=ozellikYukle&urunID=<?php if ( isset($urun) ) echo $urun->urunID ?>&kategoriID="+$(this).val(), success: function(msg){ $("#dahaOzellik").html(msg); } }); }); $('#ilanUlke').change(function(){ $('#secSehir').hide(); $('#secIlce').hide(); $('#ilanSehir').show(); $('#ilanIlce').show(); if ( sayac == 2 ){ $('#secSehir').val(''); $('#secIlce').val(''); } if ( $(this).val() == 'digerUlke' ){ } else { $.ajax({ type: "POST", url: "<?php echo SiteAdi ?>?p=ilYukle&ulkeID="+$(this).val(), success: function(msg){ $('#ilanSehir') .find('option') .remove() .end() .append('<option value="">Seçiniz</option>'); var obj = JSON.parse(msg); $.each(obj, function(index, value) { $('#ilanSehir').append('<option value="'+(value.id)+'">'+(value.ad)+'</option>'); }); $('#ilanSehir').append('<option value="digerSehir">Diğer</option>'); <?php if ( isset($urun) ) { ?> $('#ilanSehir').val('<?php echo ekBilgi('ilanSehir'); ?>'); $('#ilanSehir').change(); <?php } ?> <?php if ( isset($urun->ekBilgi['secSehir']['ilanSehir']) ){ ?> if ( sayac == 0 ){ $('#secSehir').show(); $('#secIlce').show(); $('#ilanSehir').hide(); $('#ilanIlce').hide(); } <?php } ?> } }); } }); $('#ilanSehir').change(function(){ if ( sayac == 1 ){ $('#secSehir').val(''); $('#secIlce').val(''); } if ( $(this).val() == 'digerSehir' ){ $('#secSehir').show(); $('#secIlce').show(); $('#ilanSehir').hide(); $('#ilanIlce').hide(); } else { $('#secIlce').hide(); $('#ilanIlce').show() $.ajax({ type: "POST", url: "<?php echo SiteAdi ?>?p=ilceYukle&ilID="+$(this).val(), success: function(msg){ $('#ilanIlce') .find('option') .remove() .end() .append('<option value="">Seçiniz</option>'); if ( msg ){ var obj = JSON.parse(msg); $.each(obj, function(index, value) { $('#ilanIlce').append('<option value="'+(value.id)+'">'+(value.ad)+'</option>'); }); } $('#ilanIlce').append('<option value="secIlce">Diğer</option>'); <?php if ( isset($urun) ) { ?> $('#ilanIlce').val('<?php echo ekBilgi('ilanIlce'); ?>'); <?php } ?> <?php if ( isset($urun->ekBilgi['secIlce']['ilanIlce']) ){ ?> if ( sayac == 0 ){ $('#secIlce').show(); $('#ilanIlce').hide(); sayac = 1; } <?php } ?> } }); } }); $('#ilanIlce').change(function(){ if ( $(this).val() == 'secIlce' ) { $('#secIlce').show(); $('#ilanIlce').hide(); } }); }); </script> <?php if ( isset($urun) ) { ?> <script type="text/javascript"> $(document).ready(function(){ $('#ilanUlke').val('<?php echo ekBilgi('ilanUlke');?>'); $('#ilanUlke').change(); }); </script> <?php } ?> <script type="text/javascript" src="<?php echo SiteAdi?>js/ckeditor/ckeditor.js"></script> <form name="myform" action="<?php echo SiteAdi?>?urunIslem<?php if ( isset($urun) ) echo '&urunID=' . $urun->urunID ?>" method="post" enctype="multipart/form-data"> <table width="90%" bgcolor="#FFFFFF" border="0" style="border: 1px solid #4279b1;" cellspacing="0" cellpadding="0"><tr><td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr background="media/img/blog_b_arka.gif" height="35"> <td style="padding-left:5px;" class="blog_b">İlan İşlemleri</td> <td width="33" align="center"><a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=85631401&url=" data-href=""><img src="media/img/blog_icon.gif" width="13" height="14" border="0"></a></td> </tr> <tr> <td colspan="2" style="padding:10px;"> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="y4"> <tr> <td>İlan Adı</td> <td><input class="textbox" type="text" name="ilanAdi" id="ilanAdi" style="width:200px;" maxlength="250" value="<?php if ( isset($urun) ) echo $urun->urunAdi?>" /></td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>İlan Title</td> <td><input class="textbox" type="text" name="ilanTitle" id="ilanTitle" style="width:200px;" maxlength="250" value="<?php if ( isset($urun) ) echo ekBilgi('ilanTitle');?>" /></td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>İlan Desc</td> <td><input class="textbox" type="text" name="ilanDesc" id="ilanDesc" style="width:200px;" maxlength="250" value="<?php if ( isset($urun) ) echo ekBilgi('ilanDesc');?>" /></td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>İlan Keyword</td> <td><input class="textbox" type="text" name="ilanKeyword" id="ilanKeyword" style="width:200px;" maxlength="250" value="<?php if ( isset($urun) ) echo ekBilgi('ilanKeyword');?>" /></td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>İlan No</td> <td><input class="textbox" type="text" name="urunNo" id="urunNo" style="width:200px;" maxlength="250" value="<?php if ( isset($urun) ) echo $urun->urunNo?>" /></td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>Kategori Seçiniz</td> <td> <select class="textbox" name="kategoriID" id="kategoriID"> <option value="">Kategori Seçiniz</option> <?php echo kategoriListele($kategoriList,0,( isset($urun) ? $urun->urunKategoriID : '' ) );?> </select> <?php if ( isset($urun) ) { ?> <script type="text/javascript"> $(document).ready(function(){ $('#kategoriID').change(); }); </script> <?php } ?> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>İlan Açıklaması</td> <td><textarea class="ckeditor" name="ilanAciklama" id="ilanAciklama" style="width: 600px; height: 200px;"><?php if ( isset($urun) ) echo $urun->urunAciklama?></textarea></td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>Kısa Açıklama</td> <td><textarea class="ckeditor" name="kisaAciklama" id="kisaAciklama" style="width: 600px; height: 200px;"><?php if ( isset($urun) ) echo ekBilgi('kisaAciklama');?></textarea> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>İlan Metrekare</td> <td><input class="textbox" type="text" name="m2" id="m2" style="width:200px;" maxlength="250" value="<?php if ( isset($urun) ) echo ekBilgi('m2');?>" /></td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>İlan Oda Sayısı ( Arsa Eklerken Boş Bırakınız )</td> <td> <input class="textbox" type="text" name="odaSayi" id="odaSayi" style="width:200px;" maxlength="250" value="<?php if ( isset($urun) ) echo ekBilgi('odaSayi');?>" /> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>İlan Ülke</td> <td> <select class="textbox" name="ilanUlke" id="ilanUlke"> <option value="">Seçiniz</option> <?php foreach($ulke as $key => $value){ ?> <option value="<?php echo $value->id ?>"><?php echo $value->ad ?></option> <?php } ?> </select> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>İlan Şehir</td> <td> <select class="textbox" name="ilanSehir" id="ilanSehir"> <option value="">Seçiniz</option> </select> <input class="textbox" type="text" name="secSehir" id="secSehir" style="width:200px;display:none;" maxlength="250" value="<?php if ( isset($urun->ekBilgi['secIlce']['ilanIlce']) ){ echo current($urun->ekBilgi['secSehir']['ilanSehir']); } ?>" /> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>İlan İlçe</td> <td> <select class="textbox" name="ilanIlce" id="ilanIlce"> <option value="">Seçiniz</option> </select> <input class="textbox" type="text" name="secIlce" id="secIlce" style="width:200px;display:none;" maxlength="250" value="<?php if ( isset($urun->ekBilgi['secIlce']['ilanIlce']) ){ echo current($urun->ekBilgi['secIlce']['ilanIlce']); } ?>" /> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>İlan Adres</td> <td><input class="textbox" type="text" name="ilanAdres" id="ilanAdres" style="width:200px;" maxlength="250" value="<?php if ( isset($urun) ) echo ekBilgi('ilanAdres');?>" /></td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>Posta Kodu</td> <td><input class="textbox" type="text" name="ilanKod" id="ilanKod" style="width:200px;" maxlength="250" value="<?php if ( isset($urun) ) echo ekBilgi('ilanKod');?>" /></td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>İlan Sayfa Yeri</td> <td> <select class="textbox" name="ilanSlayt" id="ilanSlayt"> <option value="">Seçiniz</option> <option value="anasayfaHepsi" <?php if ( isset($urun) && $urun->urunYer == 'anasayfaHepsi' ) echo 'selected="selected"' ;?>>Vitrin & Popüler</option> <option value="anasayfaVitrin" <?php if ( isset($urun) && $urun->urunYer == 'anasayfaVitrin' ) echo 'selected="selected"' ;?>>Vitrin İlanlar</option> <option value="anasayfaPopuler" <?php if ( isset($urun) && $urun->urunYer == 'anasayfaPopuler' ) echo 'selected="selected"' ;?>>Popüler İlanlar</option> </select> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td align="right" colspan="2"><input class="buton" type="submit" name="sbt" id="sbt" value="Kaydet" onclick='return FormKontrol();'></td> </tr> </table> </td> </tr> <tr><td background="media/img/blog_alt.gif" height="5px" colspan="2"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr background="media/img/blog_b_arka.gif" height="35"> <td style="padding-left:5px;" class="blog_b">Resim İşlemleri</td> <td width="33" align="center"><a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=85631401&url=" data-href=""><img src="media/img/blog_icon.gif" width="13" height="14" border="0"></a></td> </tr> <tr> <td colspan="2" style="padding:10px;"> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="y4"> <tr> <td>İlan Resim</td> <td> <input class="textbox" type="file" name="ilanResim[]" style="width:200px;" maxlength="250" value="" /> <input type="button" class="dahaResim" value="Daha fazla resim" /> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td align="right" colspan="2"><input class="buton" type="submit" name="sbt" id="sbt" value="Kaydet" onclick='return FormKontrol();'></td> </tr> </table> <table id="dahaResim" width="77%" cellpadding="0" cellspacing="0" border="0" class="y4"> </table> <?php if ( isset($urun) ) { ?> <table width="67%" cellpadding="0" cellspacing="0" border="0" class="y4"> <?php foreach ($resim['anaResim'] as $key => $value){?> <tr> <td>İlan Resim</td> <td> upload . 'kucuk/' . $value?>" width="100" /> <input type="button" onclick="window.location='<?php echo SiteAdi . '?urunIslem&urunID='.$urun->urunID.'&p=ekKaldir&bilgiID=' . $key ?>'" value="Resmi Kaldır" /> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <?php } ?> <?php foreach ($resim['digerResim'] as $key => $value){?> <tr> <td>İlan Resim</td> <td> <img src="<?php echo upload . 'kucuk/' . $value?>" width="100" /> <input type="button" onclick="window.location='<?php echo SiteAdi . '?urunIslem&urunID='.$urun->urunID.'&p=anaResim&bilgiID=' . $key ?>'" value="Ana Resim Yap" /> <input type="button" onclick="window.location='<?php echo SiteAdi . '?urunIslem&urunID='.$urun->urunID.'&p=ekKaldir&bilgiID=' . $key ?>'" value="Resmi Kaldır" /> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <?php } ?> <?php } ?> </table> <?php } ?> </td> </tr> <tr> <td background="media/img/blog_alt.gif" height="5px" colspan="2"> <img src="media/img/bos.gif" width="1px" height="1px"> </td> </tr> <tr background="media/img/blog_b_arka.gif" height="35"> <td style="padding-left:5px;" class="blog_b">Özellik İşlemleri</td> <td width="33" align="center"><a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=85631401&url=" data-href=""><img src="media/img/blog_icon.gif" width="13" height="14" border="0"></a></td> </tr> <tr> <td colspan="2" style="padding:10px;"> <table id="dahaOzellik" width="67%" cellpadding="0" cellspacing="0" border="0" class="y4"> </table> </td> </tr> <tr><td background="media/img/blog_alt.gif" height="5px" colspan="2"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr background="media/img/blog_b_arka.gif" height="35"> <td style="padding-left:5px;" class="blog_b">Rezervasyon İşlemleri</td> <td width="33" align="center"><a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=85631401&url=" data-href=""><img src="media/img/blog_icon.gif" width="13" height="14" border="0"></a></td> </tr> <tr> <td colspan="2" style="padding:10px;"> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="y4"> <tr> <td>İlan Kişi Sayısı ( Arsa Eklerken Boş Bırakınız )</td> <td> <input class="textbox" name="ilanKisi" style="width:200px;" maxlength="250" value="<?php if ( isset($urun) ) echo $urun->rezKisiSayisi?>" /> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>Fiyatı</td> <td> <input class="textbox" name="ilanTutar" style="width:200px;" maxlength="250" value="<?php if ( isset($urun) ) echo $urun->rezTutar?>" /> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td>Para Cinsi</td> <td> <input class="textbox" name="ilanDoviz" style="width:200px;" maxlength="250" value="<?php if ( isset($urun) ) echo $urun->rezDoviz?>" /> </td> </tr> <tr><td height="5px"><img src="media/img/bos.gif" width="1px" height="1px"></td></tr> <tr> <td align="right" colspan="2"><input class="buton" type="submit" name="sbt" id="sbt" value="Kaydet" onclick='return FormKontrol();'></td> </tr> </table> </td> </tr> </table> </td></tr></table> <input type="hidden" name="p" value="ilan<?php echo $urunIslem?>"/> <?php if ( isset($urun) ){ ?> <input type="hidden" name="urunID" value="<?php echo $urun->urunID?>"/> <?php } ?> </form> <?php unset($urun); ?>