Bug #1167: can't connect to mysql

From: Date: Sat, 20 Feb 1999 10:03:06 +0000
Subject: Bug #1167: can't connect to mysql
Groups: php.dev 
Request: Send a blank email to php-dev+get-4172@lists.php.net to get a copy of this message
From: ww73@columbia.edu Operating system: Linux redhat 5.2 PHP version: 3.0.6 PHP Bug Type: MySQL related Bug description: can't connect to mysql got this error Fatal error: Call to unsupported or undefined function mysql_connect() in /home/httpd/html/sql.php3 on line 14 from <? /* this script will handle the variables passed from the moreinfo.html file */ /* declare some relevant variables */ $hostname = "localhost"; $username = "user"; $password = "password"; $userstable = "info"; /* MySQL table created to store the data */ $adminaddress = "email@what.com"; /* the site administr$ $dbName = "test"; /* make connection to database */ MYSQL_CONNECT($hostname, $username, $password); @mysql_select_db( "$dbName") or die( "Unable to select database"); PRINT "<CENTER>"; PRINT "Hello, $name."; PRINT "<BR><BR>"; -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4172) next »