I have a problem
I try to display the data from database in TABLE (HTML), and then the data that I have displayed must be save in another table with the same content
Display Data
<?php
include('ApprovalDB.php');
$result = mysql_query("SELECT pr_id, prcode, type, client, requestdate, status FROM t_purchaserequest where status = 'Approved' and type = 'Sample Only'")
or die(mysql_error());
echo "<table class = 'tbl1' cellpadding='10'>";
echo "<thead><td>PRCODE</td><td>TYPE</td> <td>CLIENT</td> <td>REQUESTED DATE</td> <td>STATUS</td><td>ACTION</td></thead>";
while($row = mysql_fetch_array( $result )) {
echo "<tr>";
echo '<td>' . $row['prcode'] . '</td>';
echo '<td>' . $row['type'] . '</td>';
echo '<td>' . $row['client'] . '</td>';
echo '<td>' . $row['requestdate'] . '</td>';
echo '<td>' . $row['status'] . '</td>';
echo '<td><a href="returnDB.php?id=' . $row['pr_id'] . '" class = "link1">Return Item</a></td>';
echo "</tr>";
}
echo "</table>";
echo "<a href = 'javascript:window.history.go(-1);' class = 'img_arrow'><img src = 'back_arrow.png'></a>";
?>
this link return item, the function must be save the item display in the table.. since I was a newbie.. I don't how I should start here...
thank you for your response to my problem