如果点击:url:user_cart.php? (不会弹出)如果我添加#url:user_cart.php?#(它会弹出)。我不知道为什么会发生这种情况,因为我的一些页面是这样的,并且它起作用了
<tbody>
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '';
$dbname = 'tradingdb';
$connection = mysql_connect($dbhost,$dbuser,$dbpass);
if (!$connection) {
die("Database connection failed: " . mysql_error());
}
$db_select = mysql_select_db($dbname,$connection);
if (!$db_select) {
die("Database selection failed: " . mysql_error());
}
$query="select user_add_cart.id,user_add_cart.prod_cart_quantity,user_add_cart.total,product.prod_name,product.price from user_add_cart inner join product on product.id = user_add_cart.prod_id";
$result = mysql_query($query);
while ($row = mysql_fetch_array($result) ) {
?>
<tr>
<td hidden><?php echo $row['id']; ?></td>
<td><a class='remove' href='#'><fa class='fa fa-close'></fa></a></td>
<td><a href='#'><img src='img/man/polo-shirt-1.png' alt='img'></a></td>
<td><a class='aa-cart-title' href='#'><?php echo $row["prod_name"];?></a></td>
<td><?php echo $row['price']?></td>
<td><a class='aa-cart-quantity' id="quant_value" name='quant'><?php echo $row['prod_cart_quantity']; ?></a></td>
<td id="totalprice"><?php echo $row['total'];?></td>
<td>
<div class="panel-heading">
<button class='btn btn-success' data-toggle='modal' href='#addquantity'>Edit</button> <!-- This is the button needs to be clicked to make modal pop up-->
</div>
</td>
</tr>
<?php
}
?>
</tbody>