Skip to content
Snippets Groups Projects
Commit f9671104 authored by Akmal Fadlurohman's avatar Akmal Fadlurohman
Browse files

Memperbaiki warna tombol delete preferred location

parent 129b4991
1 merge request!45OneHundred - 13515005 - Husnulzaki Wibisono Haryadi
......@@ -51,7 +51,7 @@ tr th:nth-child(3) {
margin-left: 15%;
}
.delete_button {
color: red;
color: #ff0000;
float: right;
margin-right: 15%;
}
......
<?php
include '../database/dbconnect.php';
$user_id = $_GET['id'];
$deletedLoc = $_GET['loc'];
$query = mysqli_query($con,"DELETE FROM driver_prefloc WHERE user_id='".$user_id."' AND pref_loc='".$deletedLoc."'") or die(mysqli_error($con));
$user_id = urldecode($_GET['id']);
$deletedLoc = urldecode($_GET['loc']);
$query = mysqli_query($con,"DELETE FROM driver_prefloc WHERE driver_id='".$user_id."' AND pref_loc='".$deletedLoc."'") or die(mysqli_error($con));
mysqli_close($con);
if ($query) {
header("Location: edit_location.php?id=$user_id");
......
......@@ -43,10 +43,10 @@
{
$i = 1;
while($row=mysqli_fetch_assoc($query)) {
echo ' <tr>
echo '<tr>
<td>'.$i.'</td>
<td>'.$row['pref_loc'].'</td>
<td><div class="edit_button">✎</div><div class="delete_button"><a href="'deletePrefLoc.php?id='.$user_id.'%26&loc='.$row['pref_loc']'">✖</a></div></td>
<td><div class="edit_button">✎</div><div class="delete_button"><a href=deletePrefLoc.php?id='.urlencode($user_id).'&loc='.urlencode($row['pref_loc']).'>✖</a></div></td>
</tr>';
$i++;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment