I agree with bradgrafelman
try connect with 'localhost' first, instead of IPnumber, if your mysql is on same PC as webserver.
mysql_connect( "localhost", "xxxx", "xxxx" ) or die( mysql_error() );
If this does not work, then I do not know.
Because 90% this will work when you run PHP, MySQL on your own machine.
When we have our stuff elsewhere, at some web hosting,
then we often use some special link for 'host' to the database server