我想从第一个查询中插入一条记录,我的意思是行然后用秒查询插入。有人能帮助我吗
if ( isset($_GET['del']) ) {
$id = $_GET['del'];
$result = mysqli_query($con,"SELECT * FROM products WHERE id='$id'");
while($row = mysqli_fetch_array($result))
{
echo $row['username'] . " " . $row['size'];
echo "<br>";
}
$sql_move = mysqli_query($con,"INSERT INTO history (username, serial, image, arrive,size)");
$sql = mysqli_query($con,"DELETE FROM products WHERE id='$id'");
echo "its deleted";
}
?>