php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33228 MySQL Connection problem
Submitted: 2005-06-03 10:44 UTC Modified: 2005-06-03 10:49 UTC
From: beena at blr dot cmc dot net dot in Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.0.4 OS: Windows 2000 Server
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: beena at blr dot cmc dot net dot in
New email:
PHP Version: OS:

 

 [2005-06-03 10:44 UTC] beena at blr dot cmc dot net dot in
Description:
------------
i have loaded PHP 5.0.4 on Windows 2000 server, IIS 5 & MySQL 4.1. when i try to run a php script to establish a connection with MySQL, 
   it gives me a 
Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\estbconn.php on line 2

in the script file. i am able to use MySQL @ command line. i have copied the file libmysql.dll to c:\winnt\system32 folder and it also exists in c:\PHP folder. i have also set the path in for C:\PHP.
 pls help me in order to enable me to execute more PHP scripts for MySQL database

Reproduce code:
---------------
<?php
  $connection=mysql_connect("localhost","root","sql123")
   or die("A connection to server could not be established");
   echo "root user login in MySQL server @ localhost successful";
  
?>

Expected result:
----------------
connectivity to happen

Actual result:
--------------
Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\estbconn.php on line 2


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-03 10:49 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Read the docs again.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC