Exemple #1
0
    $newURL = "http://localhost:8888/eretail/admin_login.php";
    header('Location: ' . $newURL);
}
require_once 'header.php';
require_once 'product.php';
require_once 'category.php';
require_once 'administator.php';
require_once 'db.php';
$error = "Please fill all the texts in the fields.";
$admin = new Administator();
?>

<div class="container">
 <div class="main" style="margin-top: 10px;">
 	<?php 
$result1 = $admin->getAllOrder();
while ($row1 = mysql_fetch_array($result1)) {
    $result = $admin->getProductById($row1[4]);
    while ($row = mysql_fetch_array($result)) {
        ?>
    			<div class="product_wide">
    				<div class="product_header">
    					<h3 class="left_head_1">Customer Name: <?php 
        echo ucfirst($row1[1]);
        ?>
</h3><h3 class="right_head_2">Phone No. <?php 
        echo $row1[2];
        ?>
</h3>
    					<div class="clear"></div>
    				</div>