RE: [PHP] two data base connections on one page
| From: | ..s.c.o.t.t.. | Date: | Thu, 24 May 2001 09:30:40 +0000 |
| Subject: | RE: [PHP] two data base connections on one page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54168@lists.php.net to get a copy of this message | ||
look at the manual def's for both:
mysql_connect
and
mysql_db_query
if you have multiple database connections active,
remember to *always* use the linkid of the database
you want to talk to....
> -----Original Message-----
> From: David Robley [mailto:huntsman@www.nisu.flinders.edu.au]
> Sent: Wednesday, May 23, 2001 23:06
> To: Peter Houchin - SunRentals Australia; Php-General@Lists. Php. Net
> Subject: Re: [PHP] two data base connections on one page
>
>
> On Thu, 24 May 2001 15:23, Peter Houchin - SunRentals Australia wrote:
> > Hi,
> >
> > I'm playing around with phpwebsite that I down loaded.. and am creating
> > my own pageto add to it phpwebsite creates a database connection and
> > the page I am creating also needs a connection to a different database
> > ... this is possible to do and on the same page ... I know this is
> > probably in the manual .. but I am unsure of what to look for in there
> > for it .. I'm using MySQL and mysql_connect shows nothing for what i
> > need..
>
> > any idea's suggestions would be greatly appreciated
> >
> > Peter
>
> Once you have opened a connection, you should be able to use
> mysql_db_query multiple times, specifying different databases each time,
> and of course using different variables for the result identifiers.
>
> --
> David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
> CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
>
> Amusement is the happiness of those who cannot think.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>