[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.
Use a config.php file - it makes it easier to globally change the password
for each page.

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)