You are here: MySQL problem: Call to undefined function mysql_connect() « PHP Programming Language « IT news, forums, messages
MySQL problem: Call to undefined function mysql_connect()

Posted by lumo2000 on 07/26/07 15:52

hello
i am not able to get mysql running.
you can get my server/php settings/details here:
http://damn-i-have.no-ip.com/phpinfo.php

i already enabled the following stuff in my php.ini

NOTE: i installed php to C:\php and got the ext dir in the install
dir.
extension_dir = "C:\php\ext"
extension=php_mysql.dll

i am still getting this error:
Fatal error: Call to undefined function mysql_connect() in C:\httproot
\mysqltest.php on line 2

i use this sorcecode:
<code>
<?php
$link = mysql_connect('localhost', '*****', '******');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
</code>
any ideas?

PS: mysql is running on standard port 3306 and i can access it with my
mysql query browser, with the user i use in php.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация