I have a problem on my client machine.
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\web1\news_center\user\list.php on line 30
I am trying to code a news center and when I try to bring up list.php this what happens.
It has 2 include files in it and I have those configured
I am using PHP 5.1.4 and in mysql administrator this is what it shows; mysql version 5.0.22 -community-nt via tcp/ip and mysql client version 5.0.11, also apache 2.0.59
I have been doing web design for a while now, but I am trying to get into php/mysql more...
I have often had to fiddle around with various version of these before, so I wonder is that the problem?
Should I upgrade to php 5.2.0 ( the latest version)
- I also include this more info:
list.php
include('../conf.php');
include('../functions.php');
// open database connection
line 30: $connection = mysql_connect($host, $user, $pass) or die ('Unable to connect!');
// select database
mysql_select_db($db) or die ('Unable to select database!');
config.php
$host = 'localhost';
$user = 'xxxxx'; //for security reasons
$pass = xxxxxx';
$db = 'news';
Thanks