Call to undefined function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
saman_artorious
Forum Newbie
Posts: 3
Joined: Sat Nov 01, 2008 1:48 pm

Call to undefined function

Post by saman_artorious »

Hi
it's a long time that i use mysql and php
i already created a site and have everything fixed

today i tried to access my site via apache but i recieved the following error:
call to undefined function mysql_connect

everything works fine
1)apache is running
2)mysql -u root -p connects to the mysql server and it runs

but what is the problem?????????
besides i tried other php files some of them works fine but some of them still send an error for the specified function used in them such as building graph function?
but everything was running correctly before today???????????!!!!!!!!!!!!!!!!!!!!!!!!!!!!

(today i installed ntfs package to run windows files from my linux but i don't think that the problem is related to it--i am sure somehow- LAMP works fine in my linux)

do you have any idea?
Hannes2k
Forum Contributor
Posts: 102
Joined: Fri Oct 24, 2008 12:22 pm

Re: Call to undefined function

Post by Hannes2k »

Hi,
maybe you have not installed php with mysql?
User avatar
Ziq
Forum Contributor
Posts: 194
Joined: Mon Aug 25, 2008 12:43 am
Location: Russia, Voronezh

Re: Call to undefined function

Post by Ziq »

Try to open your php.ini file and uncomment this

Code: Select all

 
...
;extension=.....
[b]extension=php_mysql.dll[/b]
;extension=...
...
 
Uncomment = delete ";"
saman_artorious
Forum Newbie
Posts: 3
Joined: Sat Nov 01, 2008 1:48 pm

Re: Call to undefined function

Post by saman_artorious »

thanks
Post Reply