note 58158 added to function.mysql-connect

From: Date: Tue, 25 Oct 2005 23:07:35 +0000
Subject: note 58158 added to function.mysql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-97603@lists.php.net to get a copy of this message
I'm having some difficulties when trying to connect to MySQL, the code I'm using is: <?php $cnx = mysql_connect(...); if($cnx) { echo $cnx; } else { echo "Connection failed (Once again...)"; } ?> The response I get in the browser is: "Fatal error: Call to undefined function mysql_connect() in <directory>\connector.php on line 3" I've already installed PHP5, MYSQL5, and I'm editing from PHPEclipse Under WINNT. ---- Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58158 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58158&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58158&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58158&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58158&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58158&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58158&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58158&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58158&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97603) next »