<?php

require_once './function_defination.php';
$harami = view_product();
echo $harami;
?>
<html>
    <head></head>
</html>
<body>
    <a href="add_product.php">Add Pruduct</a>
    <a href="view_product.php">View  Pruduct</a>
    
    <table border="1px solid" align="center">
        <tr>
            <th>Product ID</th>
            <th>Product Name</th>
            <th>Product Description</th>
            <th>Publication Status</th>
        </tr>
        <?php 
while ($goru = mysql_fetch_assoc($harami)) {
    ?>
        <tr>
            <td><?php 
    echo $goru['product_id'];
    ?>
</td>
            <td><?php 
    echo $goru['product_name'];
    ?>
<?php

require_once './function.php';
$result = view_product();
?>
<!DOCTYPE html>
<html>
    <head>
        <title>View Product</title>
        <link rel="stylesheet" type="text/css" href="./css/bootstrap.min.css" />
        <script src="js/jquery.min.js"></script>
        <script src="js/bootstrap.js"></script>
        
    </head>
    <body>
        
        <nav class="navbar navbar-inverse navbar-fixed-top" >
            <div class="container">
                <div class="navbar-header" >
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#my_menu">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span> 
                    </button>
                    <a href="#" class="navbar-brand">My Site</a>
                        
                </div>
                
                <div class="navbar-collapse collapse" id="my_menu">
                    <ul class="nav navbar-nav">