From: "Dan Anderson" <[EMAIL PROTECTED]>
> But how much overhead is there in:
>
> $link = mysql_connect($hostname,$username,$password) or die("");
> $db = mysql_select_db($database,$link) or die("");
>
> Would it be beneficial to run a single one at the beginning of every
> script?  Currently I have a bunch of functions each with their own
> calls.

You should only "connect" once in your script. It's usually in an include
file to make things easy.

While multiple connections will just return the first connection, anyhow,
why do the extra work, right?

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to