php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34838 connecting to MySQL Database using php5.0.5
Submitted: 2005-10-12 16:19 UTC Modified: 2005-10-12 16:23 UTC
From: arekuti at hotmail dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 5.0.5 OS: Windows XP
Private report: No CVE-ID: None
 [2005-10-12 16:19 UTC] arekuti at hotmail dot com
Description:
------------
Hi I am using php5.0.5 and MYSQL in Windows XP. my php is working fine .It is in E:\php directory I set the path in environment variable. I added php-cgi.exe in IIS version5.Every thing is working fine but when I am connecting to MYSQL new version it is giving following error.

Fatal error: Call to undefined function mysql_connect() in E:\Inetpub\wwwroot\newconn.php on line 4


Reproduce code:
---------------
<?php
error_reporting(E_ALL);

$link = mysql_connect('localhost', 'root', 'arekuti')
	or die("dsflskdflkdsfklsdlk");
$db_list = mysql_list_dbs($link);
print $link;
$i = 0;
$cnt = mysql_num_rows($db_list);
while ($i < $cnt) {
   echo mysql_db_name($db_list, $i) . "\n";
   $i++;
}
?> 

Expected result:
----------------
Fatal error: Call to undefined function mysql_connect() in E:\Inetpub\wwwroot\newconn.php on line 4



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-12 16:23 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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 02:01:31 2024 UTC