mysql_query provides you with a resource id you can use with mysql_fetch_assoc for example
it does not give youthe result of the query itself
try
mysql_query("insert into accounts
values('','$u_name','$pass','$momname','$anne',
NOW() + INTERVAL 90 DAY, now(), '$mail', '0', '0', '0','0','0','0','0');
instead of the code you posted just above my replay