Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta charset="UTF-8">
  4. <title>LoginDB</title>
  5. </head>
  6. <body>
  7.  
  8. <?php
  9. $con= mysqli_connect("localhost", "root", "", "project");
  10.  
  11. if(!$con)
  12. {
  13. die('not connected');
  14. }
  15. $con= mysqli_query($con, "select frstname,lastname,hello as (frstname+lastname) from registration");
  16.  
  17. ?>
  18. <div>
  19. <td>Login Page Database</td>
  20. <table border="1">
  21. <th> First Name</th>
  22. <th>Last Name</th>
  23. <th>hello</th>
  24.  
  25.  
  26. <?php
  27.  
  28. while($row= mysqli_fetch_array($con))
  29.  
  30. {
  31. ?>
  32. <tr>
  33. <td><?php echo $row['frstname']; ?></td>
  34. <td><?php echo $row['lastname']; ?></td>
  35. <td><?php echo $row['hello']; ?></td>
  36. </tr>
  37.  
  38. <?php
  39. }
  40. ?>
  41. </table>
  42. </div>
  43. </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement