Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <body>
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "";
- $dbname = "learner1";
- $con = mysql_connect($servername, $username, $password, $dbname);
- if (!$con)
- die ('no sucessful connection');
- ?>
- <style>
- .label{
- color: white;
- padding: 5px;
- font-family: Ariel;
- background-color: #2196F3;
- font-size:80px;
- }
- </style>
- <center> <span class="label">Your Profile </span>
- <p>
- <img src="logo.png" alt="our logo" width="150" height="150">
- </p>
- <table width='100%' border='1'>
- <tr><th> NAME:</th><th>LEVEL:</th><th>GRADE:</th></tr>
- <?php
- $query="SELECT learn-name,learn-level,learn-grade FROM learner";
- $result=mysql_query($query);
- echo "<table>";
- while($row=mysql_fetch_array($result)){
- echo "<tr><td>".$row['learn-name']."</td><td>".$row['learn-level']."</td><td>".$row['learn-grade']."</td></tr>";
- }
- echo "</table>";
- mysql_close($conn);
- ?>
- </center>
- </body>
- </html>
Add Comment
Please, Sign In to add comment