Re: mysql connection question
| From: | Torsten Roehr | Date: | Fri, 16 Jul 2004 12:37:32 +0000 |
| Subject: | Re: mysql connection question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190703@lists.php.net to get a copy of this message | ||
"John Meyer" <jmeyer2003@msn.com> wrote in message
news:BAY11-F24wqTyFfxv4k000df3c1@hotmail.com...
> Hi,
> For a long time, on all of my mysql pages, I've done something like this
>
> $conn = mysql_connect($server,$username,$password) or die("Could not
> connect")
> mysql_select_db($db);
>
>
> I've finally put that into its own script file, moved it to my include
> files, and simply included it whereever I needed a connection. My
question
> is, could this get me into trouble if multiple people access the database
at
> the same time?
Including it is no different to placing it directly into your code. So there
will be no difference.
Regards, Torsten Roehr