Well, at the moment I'm doing a project with html, php and mysql and I'm having a little problem now.
Going further to the subject:
Assuming I have two tables: unconfirmed and confirmed, and what I want is in the php page to get pass the unconfirmed table data to the confirmed, but when I pass the data to the table confirmed I wanted that record to disappear unconfirmed tables. (in this case the unconfirmed table is called "host").
Sorry for the way I got to try to explain, if you do not notice something, say that I try to explain myself better.
<?php
include ('ligar.php');
$sql = "select * from hospede";
$cod_hospede=$_GET['cod_hospede'];
$sql = "INSERT INTO confirmados SELECT * FROM hospede WHERE cod_hospede = '$cod_hospede'";
$result = mysqli_query($con, $sql);
if ($result)
echo "<br><br>Dados registados com sucesso!";
else
echo "Erro ao tentar registar dados na base de dados!";
?>
<br>
<a href="confirmados.php">voltar</a>