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:[EMAIL PROTECTED]]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]