|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-12 16:23 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 05:00:01 2025 UTC |
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