I do this:
$result = $mysqli -> query("SELECT * FROM mytable") {
// do something
}
Many online tutorials wrap with "if" if ( $result = $mysqli -> query("SELECT * FROM mytable") ) {
// do something }
After trying it both ways with hundreds of different variations, I cannot produce differing results... What POSSIBLY could be gained by wrapping my mysql queries with an "if" statement?