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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 12:01:28 2024 UTC