这是表单代码,我跳转到sql insert查询如何使用上一页的id到下一页的旁边
<?php
$item=$_GET['category_id'];
echo '<tr><a href="additem.php"> <button type="button" name="btn1"
class="btn btn-primary">Add Category</button></a></tr>';
if ($item==1) {
$query="SELECT * FROM tbl_items where category_id=1";
$result=mysqli_query($conn, $query);
while ($row=mysqli_fetch_array($result)) {
?>
<tr>
<td>
<a href=""><?php echo $row['name']; ?></a>
</td>
<td>
<img src=images/<?php echo $row['image']; ?> width="50" height="50">
</td>
</tr>
<?php
}
}