Merhaba, Komutu şu şekilde çalıştırmayı deneyin;
$q = "UPDATE musteri SET musteri_adi='".$musteri_adi."', id=".$_SESSION['userid']." WHERE musteri = ".$musteri; mysql_query($q); Bu arada $q'ya gelen değere bakın. Bunu çalıştırın. hataya tekrar bakın. Sorgu oluştururken hiç bir filitreleme işlemi yapmadığınızdan sorun çıkıyor olabilir. Ayrıca mysql_query tavsiye edilmiyor. http://php.net/manual/en/function.mysql-query.php Suggested alternatives Use of this extension is discouraged. Instead, the MySQLi<http://www.php.net/manual/en/book.mysqli.php> or PDO_MySQL <http://www.php.net/manual/en/ref.pdo-mysql.php> extension should be used. See also MySQL: choosing an API<http://www.php.net/manual/en/mysqlinfo.api.choosing.php> guide and related FAQ<http://www.php.net/manual/en/faq.databases.php#faq.databases.mysql.deprecated> for more information. Alternatives to this function include: - mysqli_query() <http://www.php.net/manual/en/mysqli.query.php> - PDO::query() <http://www.php.net/manual/en/pdo.query.php> Volkan Altan http://volkanaltan.com/ İyi Çalışmalar. 2012/11/23 Nilüfer Kibar <[email protected]> > Merhaba Metin bey, > > Bu şekilde de çalışmadı.Bildiğim bütün syntax yollarını denedim. > > 23 Kasım 2012 15:44 tarihinde Metin Topallar <[email protected]>yazdı: > > $sorgu = mysql_query("UPDATE musteri SET musteri_adi='".$musteri_adi."', >> id=".$_SESSION['userid']." WHERE musteri = ".$musteri); > > > > _______________________________________________ > Linux-programlama mailing list > [email protected] > https://liste.linux.org.tr/mailman/listinfo/linux-programlama > Liste kurallari: http://liste.linux.org.tr/kurallar.php > >
_______________________________________________ Linux-programlama mailing list [email protected] https://liste.linux.org.tr/mailman/listinfo/linux-programlama Liste kurallari: http://liste.linux.org.tr/kurallar.php
