I this tutorial kapalı tabanlı bir e-ticaret sitesi var.
Şimdi, cart.php sayfasında, her biri Update Cart butonuna tıklayın miktar ve gelirleri güncellemeleri, onlar aşağıdaki bildirimler ile karşılaşacaksınız:
Notice: Array to string conversion in /home/aquadual/public_html/fiverrproject/plaincart/library/config.php on line 51
Notice: Array to string conversion in /home/aquadual/public_html/fiverrproject/plaincart/library/config.php on line 51
Notice: Array to string conversion in /home/aquadual/public_html/fiverrproject/plaincart/library/config.php on line 51
Unknown column 'A' in 'where clause'
İşte bu haber etkileyen config.php dosyasındaki kodu:
if (!get_magic_quotes_gpc()) {
if (isset($_POST)) {
foreach ($_POST as $key => $value) {
**$_POST[$key] = trim(addslashes($value));**
}
}
if (isset($_GET)) {
foreach ($_GET as $key => $value) {
$_GET[$key] = trim(addslashes($value));
}
}
}
Konfigürasyon dosyasında satır 51 olan gerçek satır:
$_POST[$key] = trim(addslashes($value));