Originally Posted by
Webskipper
I simply disabled the line:
/**
https://www.php.net/manual/en/migrat...w-features.php
$telephone = zen_db_prepare_input($_POST['telephone']);
*/
This was also used to disable the other undefined line triggering errors:
/includes/modules/pages/pop-up-image/header-php.php line 28
/**
$products_values_query = $db->bindVars($products_values_query, '
roductsID', $_GET['pID'], 'integer');
*/
Both of these lines are looking for an integer.
on your OP, you were asking to be taught how to solve your problem, not to solve it...
i would not recommend your solutions.
assuming you are running php 7.0 or newer i would solve your problems as so:
PHP Code:
$telephone = zen_db_prepare_input($_POST['telephone'] ?? '');
$products_values_query = $db->bindVars($products_values_query, ':productsID', ($_GET['pID'] ?? ''), 'integer');
you can read about the new coalesce functions here:
https://www.php.net/manual/en/migrat...w-features.php
if you are not running > php 7.0; then my solution would be to upgrade your server/zen-cart version so that you are.
best.
Bookmarks