Hello, I create this backend system. When someone click check box then press apply. This script suppose to delete all rows that are checked. How to do so? It seems like the script are incomplete.
<?php
$i=0;
while ($data = mysql_fetch_array($result)){
$result2=($i%2)?'#DFA09D':'white';
echo "<tr bgcolor='$result2'>";
echo '<td><input type="checkbox" name="vehicle" value="Bike"></td>';
echo '<td>'.$data['productname'].'</td>';
echo '<td>'.$data['location'].'</td>';
echo '<td>'.$data['description'].'</td>';
echo '<td>'.$data['urlimages'].'</td>';
echo '<td><a href="product.php?mode=delete&id='.$data['id'].'">Hapus</a> |<a href="input_image.php?id='.$data['id'].'">Edit</a></td>';
echo '</tr>';
$i++;
}
?>
</table>
<br>
<tr>
<td><select name="lokasi">
<option value="Show">Show</option>
<option value="DoNotShow">Do Not Show</option>
<option value="Delete">Delete</option>
</select></td>
<td><input type="submit" name="ok" value="Apply"/></td>
</tr>
</form>
</div>