<?php include ("connect.php");?>
<?php
// Get Manufactures Select
$query_Brands = "SELECT * FROM Manufacture_Sizes ORDER BY manufacture ASC";
$Brands = mysqli_query($LogoMasters, $query_Brands);
$totalRows_Brands = mysqli_num_rows($Brands);
if($totalRows_Brands > 0){
while($row_Brands = mysqli_fetch_assoc($Brands)){
$Brand_Name = $row_Brands['manufacture'];
$Brand_Output .= '<option value="'.$Brand_Name.'">'.$Brand_Name.'</option>';
}
}
// Recent Products
$query_Recent = "SELECT * FROM products WHERE date_updated != '0000-00-00' ORDER BY date_updated DESC, id DESC LIMIT 50";
$Recent = mysqli_query($LogoMasters, $query_Recent);
$totalRows_Recent = mysqli_num_rows($Recent);
if($totalRows_Recent > 0){
while($row_Recent = mysqli_fetch_assoc($Recent)){
$Recent_ID = $row_Recent['id'];
$Recent_Brand = $row_Recent['manufacture'];
$Recent_Name = $row_Recent['name'];
$Recent_Image = $row_Recent['image'];
$Recent_UnitNumber = $row_Recent['unitNumber'];
$Recent_Date = $row_Recent['date_updated'];
$Recent_Output .= '<tr>
<td align="left" valign="middle"><a href="edit-product-basic.php?pid='.$Recent_ID.'"><img src="https://logomastersintl.com/largeimages/'.$Recent_Image.'" width="100" alt=""/></a></td>
<td align="left" valign="middle"><a href="edit-product-basic.php?pid='.$Recent_ID.'"><p><strong>Brand: </strong>'.$Recent_Brand.'<br>
<strong>Product #:</strong> '.$Recent_UnitNumber.'<br>
<strong>Name:</strong> '.$Recent_Name.'</p></a></td>
<td align="center" valign="middle">'.$Recent_Date.'</td>
</tr>';
}
}
?> |