#34838 [Opn->Bgs]: connecting to MySQL Database using php5.0.5
| From: | tony2001@php.net | Date: | Wed, 12 Oct 2005 14:23:28 +0000 |
| Subject: | #34838 [Opn->Bgs]: connecting to MySQL Database using php5.0.5 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86457@lists.php.net to get a copy of this message | ||
ID: 34838
Updated by: tony2001@php.net
Reported By: arekuti at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: IIS related
Operating System: Windows XP
PHP Version: 5.0.5
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-10-12 16:19:17] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34838&edit=1