[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] PHP+MySQL+Qube3
- Subject: RE: [cobalt-users] PHP+MySQL+Qube3
- From: "Phil Beynon" <phil@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue Dec 16 09:57:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of oxfordmusic.net
> Sent: 16 December 2003 17:26
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: Re: [cobalt-users] PHP+MySQL+Qube3
>
>
>
>
> >
> > > > List,
> > > > I'm trying to use the MySQL server with PHP on my Qube3.
> > > > One of my pages have the following:
> > > >
> > > <snip>
> > > >
> > > > Fatal error: Call to undefined function: mysql_pconnect() in /<the
> file
> > > > above> on line 12 (which is the line copied above)
> > > >
> > > > What I'm missing? I'm sure that is something really stupid than I
> can't
> > > find
> > > > in the docs...
> > > >
> >
> > What you are missing is correct spelling!
> >
> > include ("../path/path/config.php");
> > mysql_connect($dbserver, $dbuser, $dbpass)
> > or die ("UNABLE TO CONNECT TO DATABASE");
> > mysql_select_db($dbname)
> > or die ("UNABLE TO SELECT DATABASE");
> >
> > There is no "p" in the connect statement.
>
> well, there can be actually:
> http://uk.php.net/manual/en/function.mysql-pconnect.php
>
> andy
Hmmm, obviously missed that one!
It looks kinda dangerous to use on a busy site though!
Phil
** http://www.diygear.com THE Online DIY Toolstore For DIY & Business
** Infolink Electronic Systems Ltd. http://www.infolinkelectronics.co.uk
** Professional Web Design & Cobalt Hosting Solutions
** Sun Cobalt iForce Reseller - Canon Silver Reseller
** Contact: Sales@xxxxxxxxxxxxxxxxxxxxxxxxx
** Tel / Fax 0121 458 4894 (office) 0121 441 3558 (home)
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>