Hello,
I am trying to create a delete button when you press the delete button it takes to a list of codes to delete the row.
input_image.php
<?php
$i=0;
while ($data = mysql_fetch_array($result)){
$result2=($i%2)?'#DFA09D':'white';
//echo "<tr bgcolor='$result2'>";
//echo '<td>'.$data['page'].'</td>';
//echo "<td><a href='post.php?post_id=".$data['post_ID']."'><img src='../images/post.jpg'></a></td>";
//echo '</tr>';
echo "<tr bgcolor='$result2'>";
echo '<td><a href="update_image2.php?image_id='.$data['image_id'].'"><img src="images/'.$data['newfilename'].'" height="100"></a></td>';
//echo '<td>'.$data['newfilename'].'</td>';
echo '<td><div style="margin: -40px 0 0 -10px; position: absolute;">'.$data['minwidth'].'px</div></td>';
echo '<td><div style="margin: -40px 0 0 10px; position: absolute;">'.$data['maxwidth'].'px</div></td>';
echo '<td><div style="margin: -40px 0 0 10px; position: absolute;">'.$data['minheight'].'px</div></td>';
echo '<td><div style="margin: -40px 0 0 20px; position: absolute;">'.$data['maxheight'].'px</div></td>';
//echo '<td><div style="margin: -40px 0 0 10px; position: absolute;">'.$data['location'].'</div></td>';
echo '<td><a href="update_image2.php?image_id='.$data['image_id'].'"><img src="images/'.$data['newfilename_bn'].'" height="100"></a></td>';
echo '<td><div style="margin: -40px 0 0 -10px; position: absolute;">'.$data['minwidth_bn'].'px</div></td>';
echo '<td><div style="margin: -40px 0 0 10px; position: absolute;">'.$data['maxwidth_bn'].'px</div></td>';
echo '<td><div style="margin: -40px 0 0 10px; position: absolute;">'.$data['minheight_bn'].'px</div></td>';
echo '<td><div style="margin: -40px 0 0 20px; position: absolute;">'.$data['maxheight_bn'].'px</div></td>';
//echo '<td><div style="margin: -40px 0 0 10px; position: absolute;">'.$data['location_bn'].'</div></td>';
echo '<td><button>Delete</button></td>';
echo '</div></tr>';
$i++;
}
?>
How to connect the delete button with the list of codes(to delete the row) ?