<?php 
require('connection.php');

?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="Orison Solutions Ltd.- A Software With Trust.">
	<meta name="author" content="root">
	<title> Orison Solutions Ltd.</title>
	<link rel="shortcut icon" href="assets/images/fav.png">
    <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700,900&amp;display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&amp;display=swap" rel="stylesheet"> 
    <link rel="stylesheet" href="assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/css/all.min.css">
    <link rel="stylesheet" href="assets/css/animate.min.css">
    <link rel="stylesheet" href="assets/webfonts/flaticon/flaticon.css">
    <link rel="stylesheet" href="assets/css/jquery.fancybox.min.css">
    <link rel="stylesheet" href="assets/css/layerslider.css">
    <link rel="stylesheet" href="assets/css/owl.carousel.min.css">
    <link rel="stylesheet" href="assets/css/template.css">
    <link rel="stylesheet" href="assets/css/style.css">
    <link rel="stylesheet" href="assets/css/category/startup.css">
</head>
<body>

<div id="page_wrapper">
    <header class="nav-on-top fixed-bg-white">
        <div class="navigation-header">
            <div class="container-fluid container-xl-ninety min-xl-px-10">
                <div class="row">
                    <div class="col-md-12">
                        <nav class="navbar navbar-expand-lg nav-secondary nav-primary-hover nav-down-line-active py-2">
                            <a class="navbar-brand" href="index.php"><img class="nav-logo" src="assets/images/logo/orison.png" alt="Image not found !"></a>
                            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon flaticon-menu flat-small text-primary"></span>
                            </button>
                            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                                <ul class="navbar-nav mx-auto">
                                    <li class="nav-item dropdown">
                                        <a class="nav-link dropdown-toggle" href="index.php">Home</a>
                                      
                                    </li>
                                    <li class="nav-item dropdown">
                                        <a class="nav-link dropdown-toggle" href="#">About</a>
                                        <ul class="dropdown-menu">
                                            <li><a class="dropdown-item" href="about.php">About Us</a></li>
                                            <li><a class="dropdown-item" href="mission.php">Mission & Vission</a></li>
                                        
                                        </ul>
                                    </li>
                                   
                                    <li class="nav-item dropdown">
                                        <a class="nav-link dropdown-toggle" href="#">Services</a>
                                        <ul class="dropdown-menu">
                                         
                                             <?php
   $sql = "SELECT * FROM categories where status='1'";
$result = mysqli_query($con, $sql);

if (mysqli_num_rows($result) > 0) {
  // output data of each row
  while($row = mysqli_fetch_assoc($result)) {?>
     <li><a href="services.php?id=<?php echo $row['id']?>" class="dropdown-item"><?php echo $row['categories']?> </a></li>
 <?php }
} else {
  echo "0 results";
}
?>

                                        </ul>
                                    </li>
                                    <li class="nav-item">
                                        <a class="nav-link" href="#">Product</a>
                                    </li>
                                    <li class="nav-item dropdown">
                                        <a class="nav-link dropdown-toggle" href="contact.php">Contact Us</a>
                                       
                                    </li>
                                    
                                </ul>
                               
                            </div>
                        </nav>
                    </div>
                </div>
            </div>
        </div>
    </header>