Im not sure if this is possible. here is what i have
if ($_REQUEST[db]=="abcd"){
$result =$abcdsqli->query("SELECT * FROM ...");
}elseif ($_REQUEST[db]=="efgh"){
$result =$efghsqli-> ...
}
here is what i want
$result =$.$_REQUEST[db].sqli->query("SELECT * FROM ...");
Why do you need so many
mysqliobjects?And using
$_RESQUESTin your code so openly like that can lead to many many hacks on your site.Just use one (one[1]) mysqli object.
I advise to NOT USE THIS but this is what you want:
So if
$_REQUEST['db'] == 'abc'It would be doing: