Jump to content

Where am i going wrong??


flandercan

Recommended Posts

Hello folks,

 

I have installed apache and sql server, when i use an sql command from the php script i get an error

 

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/sqltest/sql.php on line 5

 

line five reads

 

$link = mysql_connect( \"localhost\", $user, $pass);

 

I am using RH8 and have installed all parts from the cd for apache and sql but it still seems as though mysql_connect is an undefined function,

 

what have i missed out??

 

thanks

Paul

Link to comment
https://forums.phpfreaks.com/topic/173-where-am-i-going-wrong/
Share on other sites

thanks i understand but im still not sure ? i have installed the RPM from the package list in RH8 should i remove the php and download source, compile it and then install it??

 

it seems long winded for somthing that should really be there as standard?

 

 

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/173-where-am-i-going-wrong/#findComment-498
Share on other sites

  • 7 months later...

Its been a while since i solved this so ill jot it down if someone else has the same problem,

 

I installed red hat 8 and the sql and php from the package manager. What i needed to do to get them talking was install the phpsql bit but had to boot from the cd and perform an upgrade, then find the module in the detailed software list and install that. Then it worked perfect.

 

Paul

Link to comment
https://forums.phpfreaks.com/topic/173-where-am-i-going-wrong/#findComment-3942
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.