In my PHP code, I do a simple mySQL query and I notice both of these work:
$conn->query($statement);
-and-
mysqli_query($conn,$statement);
Which is better/more efficient?
When I did a speed test benchmark, #2 came out faster:
1.)
$statement = "insert into table ('ordernumber') values ('555')";
$conn->query($statement);
2.)
$statement = "insert into table ('ordernumber') values ('555')";
mysqli_query($conn,$statement);
Does it matter which one I use? If not, I'll go with the faster one.