In PHP 7.4, I have MySQLi connections with 3 variables in the query — possible? or replace get_magic_quotes_gpc
Hi, the problem is that I have multiple bindParams and when I do more than 1, it screws up.
A. Is there a way to put in multiple as in the following?
SELECT * FROM table WHERE var1 = ?, var2 = ?, var3 = ? AND active = 'yes';
Or if that can't work, then...
B) In the past, I could just use:
if (isset($_GET['seas'])) {
$leyear = (get_magic_quotes_gpc()) ? $_GET['seas'] : addslashes($_GET['seas']);
} else {
$leyear = $currentyear;
}
And then use the variable in the queries or wherever.
Thanks very much! Nice to see that everything we bought previously still works well!