mysql-select-db

How quick is switching DBs with PHP + MySQL?

I'm wondering how slow it's going to be switching between 2 databases on every call of every page of a site. The site has many different databases for different clients, along with a "global" database that is used for some general settings. I'm wondering if there would be much time added for the execution of each script if it has to conn...

php mysql_select_db returns blank page

I'm just starting out writing this code and when I add in the db select and refresh the page, instead of showing all the other html on the page or an error, it just shows up blank. Here's what I've got- $link = mysql_connect('vps2.foo.com:3306', 'remote_vhost30', 'password'); if (!$link) { die('Could not connect: ' . mysql_error())...

need help with mysql connection in php

Hi everyone, I have a problem with mysql connection. I have a php script which upload photo, this script do that: 1) mysql connection 2) check user rights for uploading photo (I use a sql query for this) 3) Image processing 4) sql query for insering photo data in database I have set a mysql connection timeout to 5 s. Everything wor...