Commit 1ecc4c59 authored by Priyesh's avatar Priyesh

Replace profile.php

parent 331202ac
...@@ -109,29 +109,34 @@ if(isset($_SESSION['loggedin'])) ...@@ -109,29 +109,34 @@ if(isset($_SESSION['loggedin']))
$result = mysqli_query($db, $sql_smt); $result = mysqli_query($db, $sql_smt);
if (mysqli_num_rows($result) > 0) { if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc($result)) { $row = mysqli_fetch_assoc($result)
?> ?>
<div class="card bg-white" style="border:3px solid gray; max-width: 300px; height:auto;"> <div>
<div class="card-header"> <table>
<th>Name</th>
<th>Roll No.</th>
<th>Branch</th>
<th>Email</th>
<tr>
<?php echo '<td>'.$row['name'].'</td>'; ?>
<?php echo '<td>' .$row['roll']. '</td>'; ?>
<?php echo '<td>' .$row['branch']. '</td>'; ?>
<?php echo '<td>' .$row['email']. '</td>';
echo '</tr>';
<?php echo '<p id="post_headings"><b>Name :</b> ' .$row['name']. '</p>'; ?>
<?php echo '<p id="post_headings"><b>Roll No. :</b> ' .$row['roll']. '</p>'; ?>
<?php echo '<p id="post_headings"><b>Branch :</b> ' .$row['branch']. '</p>'; ?>
<?php echo '<p id="post_headings"><b>Email :</b> ' .$row['email']. '</p>';
}
} }
mysqli_close($conn); mysqli_close($conn);
?> ?>
</div> </table>
</div> </div>
<br> <br>
<h3 style="color: #e67f11"> Your Posts : </h3> <h3 style="color: #e67f11"> Your Posts : </h3>
<table> <table>
<th>Company</th> <th>Company</th>
<th>Posted Date</th> <th>Posted On</th>
<th>Update</th> <th>Update</th>
<th>Delete</th> <th>Delete</th>
...@@ -165,11 +170,13 @@ if(isset($_SESSION['loggedin'])) ...@@ -165,11 +170,13 @@ if(isset($_SESSION['loggedin']))
?> ?>
</table> </table>
<button class="editbtn"><a href="exp_form.php">Add New Article</a></button> <br>
<button class="editbtn"><a href="exp_form.php">Add New Experience</a></button>
<br><br>
</div> </div>
</div> </div>
<br><br>
<div class="footer"> <div class="footer">
<p style="color:#e88924">&#9400; Copyright@IITB</p> <p style="color:#e88924">&#9400; Copyright@IITB</p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment