มันขึ้นแบบนี้มา
<?php
include "header.php"
?>
<div class="row">
<div class="col-md-12">
<h1 class="text-center">Players Gallery</h1>
</div>
</div>
<div class="row">
<?php
$id = $_GET["id"];
$search = $_POST["search"];
if($search != "")
{
$sql = "SELECT * FROM tebel_product WHERE produuct_name LIKE '%$search%'";
}
else
{
$sql = "SELECT * FROM tebel_product WHERE type_id = '$id'";
}
$query = mysqli_query($link,$sql);
while($row = mysqli_fetch_array($query)){
?>
<div class="col-md-4">
<a href ="productsale.php?id=<?=$row["produuct_id"]?>"><img src="pic/futsalshoes/<?=$row["produuct_picture"]?>"
class="img-responsive"></a>
<center> <h4> <a href="productsale.php?id=<?=$row["produuct_id"]?>"><?=$row["produuct_name"]?></a></h4></center>
<?php
if($show[m_status] == "admin")
{
?>
<form action="process/delete.php" method="post">
<input type="hidden" name="type_id" value="<?=$id?>">
<input type="hidden" name="produuct_id" value="<?=$row[produuct_id]?>">
<center> <input type="submit" name="" value="DELETE" class="btn btn-danger"></center>
</form>
<?php
}
?>
<br>
</div>
<?php
}
?>
</div>
</body>
อันนี้โค้ดทั้งหมดหน้าproductlist
ตอบ/อธิบาย