Since PHP5 and with the delete of mysql_query (RIP.) I'm quite confused on what the most effecient way to run a query. Since there are multiple ways.
The options that I know of are these:
Option 1:
$getInfo = "SELECT * FROM app2 WHERE id='". $appID ."' ";
$oStmt = $dbportal->prepare($getInfo);
$oStmt = $dbportal->execute();
I believe this is PDO.
Option 2:
$createQuery="INSERT INTO usr2 SET login='". $user ."', role='". $role ."'";
$dbportal->query($createQuery);
kinda PDOish?
Would someone be so kinda to push me in the right direction? A link is fine too, couldn't find anything
OfficialBAMM. \o/