This is only a curiosity of mine, and may be a small matter.
Here is a connection script:
$connection = @mysql_connect("host", "username", "password");
$db = @mysql_select_db("DataBase", $connection);
And here is a simple query:
$sql = "UPDATE table1 SET column = 'something' WHERE adminID = '$adminID'";
mysql_query($sql,$connection) or die(mysql_error());
Do I really need to specify the $connection variable in that last line?
I've seen it done with and without. Any thoughts on why that is? Or is it for the possibility of using another database connection?
thanks!