php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1167 can't connect to mysql
Submitted: 1999-02-20 05:03 UTC Modified: 1999-02-27 09:27 UTC
From: ww73 at columbia dot edu Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0.6 OS: Linux redhat 5.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ww73 at columbia dot edu
New email:
PHP Version: OS:

 

 [1999-02-20 05:03 UTC] ww73 at columbia dot edu
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>";

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-02-27 09:27 UTC] eschmid
You have not compiled mySQL support in.

No response so the comment is ok.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 01 21:00:03 2025 UTC