So im having a problem and I know it is not the code since the code runs fine on other servers. here is the error:
[syntax]
Fatal error: Call to undefined function mysql_connect() in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\OLMS\connect.php on line 11
[/syntax]
I have gone though all the usual troubleshooting deals with checking the php.ini and system PATH vereiable etc.
System Specs:
Windows Server 2008 R2 64-bit
Mysql
Apache 2.2
PHP 5.2
1 GB RAM
any help would be appreciated, I have never had this problem before!
Error with mysql on windows
Moderator: General Moderators
Re: Error with mysql on windows
You shouldn't really be using mysql_connect anyway. That aside, check your phpinfo() to ensure support was compiled in. You may just need add a .dll reference to your php.ini.
-
rileychilds
- Forum Newbie
- Posts: 14
- Joined: Mon Feb 06, 2012 5:43 pm
Re: Error with mysql on windows
I did that before! What should I be using if not mysql_connect()You shouldn't really be using mysql_connect anyway. That aside, check your phpinfo() to ensure support was compiled in. You may just need add a .dll reference to your php.ini.