Please help very inept programmer! - connection problems
Posted 25 July 2006 - 03:32 PM
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?
Here's my PHP page:
$db = mysql_connect("localhost", "root", "password");
$result = mysql_query("SELECT * FROM telephonenumbers",$db);
printf("First Name: %s<br>\n", mysql_result($result,0,"first_name"));
...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 7
Posted 25 July 2006 - 03:38 PM
Posted 25 July 2006 - 03:59 PM
I didn't really just raced through the install! Cheers Thorpe I'll go away and check my PHP install.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users