标签: php sql
$query=mysqli_query($con, "SELECT id,pname,pfname FROM appointment WHERE id='$id' insert into pres(id,pname,pfname,bp,medicine,dig) values('$bp','$medicine','$dig')");