$qryp2="INSERT INTO `cleopark`.`t_reservation` (
`id` ,
`today` ,
`entrance` ,
`adult` ,
`kids` ,
`infant` ,
`tot` ,
`g_tot` ,
`pers_id`
)VALUES (
NULL,
CURDATE(),
'$date',
'$adult',
'$children',
'$infant',
'$total',
'$grand_tot',
here i want to get the id of the second table to use it
)";


$qryp1="INSERT INTO `cleopark`.`personal` (
`id` ,
`name` ,
`address` ,
`telephone` ,
`emal` ,
`city` ,
`country` ,
`t_res_id`
)VALUES (
NULL, '$family',
'$address',
'$tele',
'$emalb',
'$cityb',
'$country',
here i want to get the id of the first table to use it
)";

all i need is to get the id of the first table and display it in the second table in slect * query
and also
i need to display the second id in the first table