Hi,
What is the error you are getting, try with this code,
$dbcnx= mysql_connect('111.111.111.111', 'username', 'password')OR die(mysql_error());
mysql_select_db("database1",$dbcnx)or die("did not select database");
$sql="insert into test(name,answer1) values('$user','$q1')";
mysql_query($sql);
i think in your code following line only some errors
$sql ="INSERT INTO `test` ( `id` , `name` , `answer1` ) VALUES ( NULL , $user , $q1);";
surendran
(Anything is Possible)
http://ssuren.spaces.msn.com