I have an e-commerce site based on this tutorial .
Now, on the cart.php page, whenever someone updates the quantity and proceeds to clicking the Update Cart button, they will encounter the following notifications:
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'
Here is the code in the config.php affecting this notification:
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)); } } }
The actual line is line 51 in the entire configuration file:
$_POST[$key] = trim(addslashes($value));
source share