[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: "oxfordmusic.net" <lists@xxxxxxxxxxxxxxx>
- Date: Tue Dec 16 09:31:02 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
>
> > > 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