to make information in two tables

In one table, I will call the user:

$db = mysql_connect("localhost","root","vladon12");
mysql_select_db("testgame");
$result = mysql_query ("INSERT INTO `users` (name,password,email,date,ip) values('$name','$password','$email','$date','$ip')") or die(mysql_error());

And to another – “hero”, whom he chose. Is it possible to do this?

$db2 = mysql_connect("localhost","root","vladon12");
 mysql_select_db("testgame");
 $result2 = mysql_query ("INSERT INTO `startpoke` (name....) values('$name'........)") or die(mysql_error());

Answer 1, Authority 100%

reconnect to the database is not necessary, just:

$ db = mysql_connect ("localhost", "root", "vladon12");
  mysql_select_db ("testgame");
  MySQL_Query ("Insert Into Users (Name, Password, Email, Date, IP) Values ​​('$ Name', '$ Password', '$ Email', '$ Date', '$ ip')") OR DIE (mysql_error ());
  MySQL_Query ("INSERT INTO STARTPOKE (NAME) Values ​​('$ Name' ........)") Or Die (mysql_error ());