paul_mann wrote in php

help please

I'm using PHP 5, with the latest ver of MySQL and Xitami http server.

I am trying to see if PHP is connected to the Database and I've got the following script:-

$db = "lbb";
$user = "root";
$pass = "";
$host = "localhost";

if(!mysql_connect("localhost", "root", ""))
{
die('failed to connect');
}else{
echo 'connected to MySql server';
}

However when I run it I get a helpfull warning that PHP cannont load c:/php/php_myslq.dll and then I get told that mysql_connect() is an undefinded function - is there anything I can do to rectify this?