Hayırlı sabahlar Kodumda bir Sıkıntımı var Verileri hem post hemde get olarak gönnderdim başarılı fakat veriler ile update işlemi yapamıyorum yardımcı olursanız Sevinirim Teşekkürler.
Kod:
<?php
if (isset($_POST['gonder'])){
if (isset($_POST['title']) and isset($_POST['favicon']) and isset($_POST['logo']) and isset($_POST['introimg'])and isset($_POST['text1']) and isset($_POST['text2']) and isset($_POST['sertext']) and isset($_POST['serbas1']) and isset($_POST['sertext1']) and isset($_POST['serbas2']) and isset($_POST['sertext2']) and isset($_POST['serbas3']) and isset($_POST['sertext3']) and isset($_POST['serbas4']) and isset($_POST['sertext4']) and isset($_POST['serbas5']) and isset($_POST['sertext5']) and isset($_POST['serbas6']) and isset($_POST['sertext6']) and isset($_POST['img5']) and isset($_POST['team1']) and isset($_POST['teamjob1']) and isset($_POST['img6']) and isset($_POST['team2']) and isset($_POST['teamjob2']) and isset($_POST['img7']) and isset($_POST['team3']) and isset($_POST['teamjob3']) and isset($_POST['img8']) and isset($_POST['team4']) and isset($_POST['teamjob4']) and isset($_POST['adress']) and isset($_POST['email']) and isset($_POST['phone']) and isset($_POST['footerbas1']) and isset($_POST['footertext1']) and isset($_POST['adres1']) and isset($_POST['adres2']) and isset($_POST['adres3']) and isset($_POST['twitter']) and isset($_POST['facebook']) and isset($_POST['instagram']) and isset($_POST['footerbas2']) and isset($_POST['footertext2']) and isset($_POST['teambas']) and isset($_POST['teamtext'])){
$teambas=$_POST['teambas'];
$teamtext=$_POST['teamtext'];
$logo=$_POST['logo'];
$title=$_POST['title'];
$favicon=$_POST['favicon'];
$introimg=$_POST['introimg'];
$text1=$_POST['text1'];
$text2=$_POST['text2'];
$serbas1=$_POST['serbas1'];
$sertext1=$_POST['sertext1'];
$serbas2=$_POST['serbas2'];
$sertext2=$_POST['sertext2'];
$serbas3=$_POST['serbas3'];
$sertext3=$_POST['sertext3'];
$serbas4=$_POST['serbas4'];
$sertext4=$_POST['sertext4'];
$serbas5=$_POST['serbas5'];
$sertext5=$_POST['sertext5'];
$serbas6=$_POST['serbas6'];
$sertext6=$_POST['sertext6'];
$img5=$_POST['img5'];
$team1=$_POST['team1'];
$teamjob1=$_POST['teamjob1'];
$img6=$_POST['img6'];
$team2=$_POST['team2'];
$teamjob2=$_POST['teamjob2'];
$img7=$_POST['img7'];
$team3=$_POST['team3'];
$teamjob3=$_POST['teamjob3'];
$img8=$_POST['img8'];
$team4=$_POST['team4'];
$teamjob4=$_POST['teamjob4'];
$adress=$_POST['adress'];
$email=$_POST['email'];
$phone=$_POST['phone'];
$footerbas1=$_POST['footerbas1'];
$footertext1=$_POST['footertext1'];
$adres1=$_POST['adres1'];
$adres2=$_POST['adres2'];
$adres3=$_POST['adres3'];
$twitter=$_POST['twitter'];
$facebook=$_POST['facebook'];
$instagram=$_POST['instagram'];
$footerbas2=$_POST['footerbas2'];
$footertext2=$_POST['footertext2'];
//Bu Kod ile Kullanıyı Kaydediyoruz.
try {
$baglanti = new PDO("mysql:host=localhost;dbname=qqq", "qqq", "123456");
$baglanti->exec("SET NAMES utf8");
$baglanti->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$sonuc = $baglanti->exec("UPDATE userweb SET logo='$logo', title='$title', favicon='$favicon', introimg='$introimg', text1='$text1', text2 = '$text2', serbas1 = '$serbas1', sertext1 = '$sertext1', serbas2 = '$serbas2', sertext2 = '$sertext2', serbas3 = '$serbas3', sertext3 = '$sertext3', serbas4 = '$serbas4', sertext4 = '$sertext4', serbas5 = '$serbas5', sertext5 = '$sertext5', serbas6 = '$serbas6', sertext6 = '$sertext6', img5 = '$img5', team1 = '$team1', teamjob1 = '$teamjob1', img6 = '$img6', team2 = '$team2', teamjob2 = '$teamjob2', img7 = '$img7', team3 = '$team3', teamjob3 = '$teamjob3', img8 = '$img8', team4 = '$team4', teamjob4 = '$teamjob4', adress = '$adress', email = '$email', phone = '$phone', footerbas1 = '$footerbas1', footertext1 = '$footertext1', adres1 = '$adres1', adres2 = '$adres2', adres3 = '$adres3', twitter = '$twitter', facebook = '$facebook', instagram='$instagram', footerbas2='$footerbas2', footertext2='$footertext2', teambas='$teambas', teamtext='$teamtext' WHERE username='$username'");
} catch (PDOException $e) {
die($e->getMessage());
}
}
}
?>
Moderatör tarafında düzenlendi:

