[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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