By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,795 Members | 1,235 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,795 IT Pros & Developers. It's quick & easy.

STRANGE "Fatal error: Call to undefined function..." ERROR

P: n/a
why strange you ask? here goes:

I have been working with Php and Mysql for a week without any problems.
Today I tried executing a php page that connects to mysql and creates a
new database, I got this error:

"Fatal error: Call to undefined function mysql_connect() in C:\Program
Files\Apache Group\Apache2\test\_debug_tmp.php on line 3".

I did some reading on the net and checked all my configuration, and it
looks o.k. (and it already worked well a whole week before today).

The strange thing is that I have another form that inserts data into
the same database in Mysql, and it works like a charm (needless to say
but both pages log in with the same username to the same database).

any ideas?

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
> I have been working with Php and Mysql for a week without any problems.
Today I tried executing a php page that connects to mysql and creates a
new database, I got this error:

"Fatal error: Call to undefined function mysql_connect() in C:\Program
Files\Apache Group\Apache2\test\_debug_tmp.php on line 3".


Your problem seems that the dll file for mysql is not loaded in your
configuration. Why the other one works I do not know what your exact
configuration is.

Mike
Jul 17 '05 #2

P: n/a
PROBLEM & MISTERY SOLVED:

for some reason my php editor used in some pages the php.ini found in
my php directory (there pages did not work). and the pages that did
work used another php.ini file found in my c:\windows\system32\
directory.

anyway, thanks alot for the help.

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.