Let's assume you have mydomain1.com, which hosts a mysql db. The visitor is on mydomain1.com/index.php and this page adds data to this db.
Which method is faster in connecting to, adding to and updating a database (see examples below)?
$db=mysql_connect("localhost","user","pw");
or
$db=mysql_connect("mydomain1.com","user","pw");
Is there much different in speed between the two?
Thanks,
Jon