Perhaps the first thing you should do is a [man]phpinfo/man page to verify whether or not MySQL is installed:
<?php
phpinfo();
?>
If that's not the problem, put this at the top of your script so that hopefully you get some debug info that will help point out where the problem is:
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
Then wherever you do a mysql_connect(), add some debugging info if it should fail:
$connx = mysql_connect($host, $user, $password) or die("DB Connection Failed: " . mysql_error());
Also, at least for now while debugging, remove any "@" character from the connection command that might be suppressing error reporting.