I am not expert with PHP and SQL. can someone check my code. I want to add the foreign key data to the child table but it does not work.
$qry="SELECT * F