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

RE: [cobalt-users] PHP+MySQL+Qube3



Thanks but the one with the right advice was:
desa15@xxxxxxxx

My mistake was to forget to activate the connection between mysql/php..

Thanks anyway.

Cheers!

Pablo.-

->-----Original Message-----
->From: cobalt-users-admin@xxxxxxxxxxxxxxx 
->[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx] On Behalf Of Phil Beynon
->Sent: 16 December 2003 16:47
->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.
->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)
->
->
->_____________________________________
->cobalt-users mailing list
->cobalt-users@xxxxxxxxxxxxxxx
->To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to: 
->->http://list.cobalt.com/mailman/listinf->o/cobalt-users
->
->---
->
->
->Incoming mail is certified Virus Free.
->
->Checked by AVG anti-virus system (http://www.grisoft.com).
->Version: 6.0.551 / Virus Database: 343 - Release Date: 11/12/2003
-> 
->

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.551 / Virus Database: 343 - Release Date: 11/12/2003