I am in the process of converting an old PHP script to make it PHP 7.x compatible so I have to change all the mysql_query() to mysqli_query().
Question:
is it the same to have mysqli_query($query, $connection) vs mysqli_query($connection, $query)?
I am noticing that in this script sometimes the query is first and then the connection but on the PHP manual it indicates the connection should be before the query:
mysqli_query ( mysqli $link , string $query [, int $resultmode = MYSQLI_STORE_RESULT ] ) : mixed
Does it matter? Or do I need to change it all the mysql_query($query, $connection) to mysqli_query($connection, $query)?
Thank you