a)Well the problem seems to be a syntax problem
coonect!= connect
AND
b)when you say "root" that only works in cases where the IP is "localhost" otherwise you cant connect to a Unix server remotely by simply saying "root". The remote IP suggests a remote MySQL server. Talk to your Admin, or the Admin of your Hosting Company (in the event that the MySQL dbase you need to connect to is a website dbase), ask for the MySQL server URL
it may be say MySQLX.yourdomain.com
that way your syntax becomes
mysql_connect("MySQLX.yourdomain.com","Username","password");
note: password is admin password
NB: I connect with mine via PHP scripts
Good luck!