Getting error
Notice: Undefined variable: row in C:\xampp\htdocs\ipo\details.php on line 65.
I am using php with sql.
<?php
include 'header.php';
include 'navbarmain.php';
$count = 0;
$PageID = (int) trim($_GET['id']);
if($PageID == 0){
//you can show error or redirect to other page
}
$mysqli = mysqli_query($connection,"SELECT * FROM products WHERE id='{$PageID}' LIMIT 1");
foreach($mysqli as $row){
$count++;
if($count == 0) { // three items in a row
$count = 0;
}
}
?>
<a href="#">
<img class="media-object" src="<?php echo $row["filename"]; ?>" alt="...">
<span class="nsbs">NSE / BSE</span>
</a>