
<?php
include"alertandmark.php";
?>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>Add Expense Item(s) Form</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active">Expense Item Form</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
	   <div class="card card-info">
              <div class="card-header">
                <h3 class="card-title"> Expense Item</h3>
              </div>
              <!-- /.card-header -->
              <!-- form start -->
              <form action='add_expense_item_action.php' method='POST'>
                <div class="card-body">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Expense Title <?php  echo $mandatory_star; ?> </label>
                    <input type="text" class="form-control" id="exampleInputEmail1" placeholder="Expense Title" name='expense_item_title' required>
                  </div>
				  

				  

					  
					  
				  
				   <div class="form-group">
				   
                                </div>
				  				    
              List of  expense items <br>
			  
			   
				    <?php
include"config.php";

$sql="select * from expense_item order by expense_item_id desc";
$result=mysqli_query($conn,$sql);

if(mysqli_num_rows($result)>0)
{
	while($row=mysqli_fetch_assoc($result))
	{
		
	echo $row['expense_item_title'];
	echo"<br>";
	}}

?>
                 
                </div>

                <!-- /.card-body -->

                <div class="card-footer">
                  <button type="submit" class="btn btn-primary">Submit</button>
                </div>
				
				
				

              </form>
            </div>
	</div>
    </section>
	           