Re: two data base connections on one page
| From: | David Robley | Date: | Thu, 24 May 2001 06:05:32 +0000 |
| Subject: | Re: two data base connections on one page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54167@lists.php.net to get a copy of this message | ||
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.