I have been writing some scripts for webpages, which use a mysql database. There's only one database which should be used, but I've been communication with mysql using mysql_db_query($db, $query, $sql) in my scripts.
Does anyone know if mysql_query($query, $sql) is faster ? Does mysql_db_query() use an extra mysql_select_db() every time I use it? Or doesn't it mean that much?
Some of my scripts have ten to 20 queries in them, so it would mean a lot on performance / speed, if there are differences between the two strategies.
wimmel