Reputation: 171
I have been using prepared statements with "IF" and without "IF", is there any difference? example;
if ($stmt = $mysqli->prepare) {}
and
$stmt1=$mysqli->prepare;
Upvotes: 0
Views: 31
Reputation: 16355
If there is no body to your if
statement, then no, there is no difference.
Upvotes: 1