Re: PHP5 and MySQL

From: Date: Fri, 15 Apr 2005 19:00:34 +0000
Subject: Re: PHP5 and MySQL
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-25845@lists.php.net to get a copy of this message
This is the Browser error: Fatal error: Call to undefined function mysql_connect() in C:\apache\htdocs\cedarintranet\index.php on line 3 This is my php code: // Connect to the database server $dbcnx = mysql_connect("localhost", "intranet", "1234"); if (!$dbcnx) { echo( "<P>Unable to connect to the " . "database server at this time. Please make use of the contact page..</P>" ); exit(); } // Select the database if (!@mysql_select_db("cedarintranet") ) { echo( "<P>Unable to connect to the " . "database server at this time. Please contact webmaster at jcbotha@cedar.org.za</P>" ); exit(); } On 4/15/05, Kevin Smith <kevin@netsmith.ltd.uk> wrote: > Perhaps posting you code will help us resolve your problem. > > JC Botha wrote: > > >Dear Users > > > >I'm havin a problem to connect to MySQL through the use of PHP5. I > >followed all documentation and none seem to resolve the problem. I'm > >running WinXP on the computer that I use to develop the apps. Any > >advice out there that could be of help. > > > >Thanks > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.windows (#25845) next »