Fearpig Posted July 25, 2006 Share Posted July 25, 2006 Hi guys any help with this would be appreciated.... I'm just starting out in PHP and I have a webserver with IIS 6, PHP and MySQL. I've set up a database with 1 table and I'm trying to pull some very basic data out but I'm having problems establishing a connection.Here are the details and the error message. Can anyone see the problem or suggest a way to start checking things?Database: TelephoneListTable: TelephoneNumbersUsername: rootPassword: passwordHere's my PHP page:<html><head></head><body><?php$db = mysql_connect("localhost", "root", "password");mysql_select_db("Telephonelist",$db);$result = mysql_query("SELECT * FROM telephonenumbers",$db);printf("First Name: %s<br>\n", mysql_result($result,0,"first_name"));?></body></html>...and here's the error it gives:Fatal error: Call to undefined function mysql_connect() in D:\Intranet v3\php_telephone_list\index.php on line 7Cheers guys! Quote Link to comment https://forums.phpfreaks.com/topic/15595-please-help-very-inept-programmer-connection-problems/ Share on other sites More sharing options...
trq Posted July 25, 2006 Share Posted July 25, 2006 mysql support is not enabled in your php installation. What steps did you follow to install php? Quote Link to comment https://forums.phpfreaks.com/topic/15595-please-help-very-inept-programmer-connection-problems/#findComment-63443 Share on other sites More sharing options...
Fearpig Posted July 25, 2006 Author Share Posted July 25, 2006 Aaaahhhhh! :DI didn't really just raced through the install! Cheers Thorpe I'll go away and check my PHP install. Quote Link to comment https://forums.phpfreaks.com/topic/15595-please-help-very-inept-programmer-connection-problems/#findComment-63456 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.