How to select entire column data of 2 rows using php?

Let me explain what actually I want to do.I am storing user’s information in mysql table named “students_data”. Here, now I just want to print those names in the table below except the user who logged in.Suppose I haven total 5 users list including me on table with their First name , last name and others detail.
Below the h2 tag in table I want to print those names that are on table only the First name and last name, obviously excluding me.

$sql= "SELECT First_Name FROM students_data";  

    <link rel="stylesheet" type="text/css" href="bootstrap.min.css">  
    <meta name="viewport" content="width=device-width,initial-scale=1" >  
<div class="container">  
<div class="col-sm-4"></div>  
<div class="col-sm-4" >  
    <h2>Friends You may know</h2>  
    <table class="table table-striped">  
<div class="col-sm-4" >  
    <h2>Your status</h2>  

Source: mysql

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.