Fatal error: Call to undefined function mysql_connect()

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
del
Posts: 1
Joined: Tue Jul 26, 2005 10:05 pm

Fatal error: Call to undefined function mysql_connect()

Post by del »

Script URL: local
Version of script: 0.93b from July 5, 2005
Version of PHP: 5.0.4
Hosting company: local
Have you searched THIS FORUM for your problem: Yes
(if not please do before posting)
If so, what terms did you try: above

Write your message below:
Hello

This script looks great but I just can't get out of the starting blocks.

When I run check database connection on install.php I get this error.
Fatal error: Call to undefined function mysql_connect() in D:\Intranet\hesk\install.php on line 159

I checked all my settings and they all look OK. I can connect to mysql using a different front end.
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

mysql_connect is a standard function and it should be included in your PHP package. You might want to re-check that.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Ismael

The same error

Post by Ismael »

I'm see the same error in the scrip install.php

what i can do???

I can connect to my database called hdesk from the mysql administrator...

the scripts need a particular installation??

how can include the sentence in the php script???


thanks.
Ismael
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

What version of PHP have you got?

If you have PHP 5 keep in mind I haven't tested this scipt in PHP 5 and from what I know it doesn't work there yet, try installing PHP 4.3.x

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Just found out that MySQL is NOT enabled by default in PHP 5+. Further reading and installation instructions here:

http://www.php.net/mysql

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply