Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="UTF-8">
- <title>LoginDB</title>
- </head>
- <body>
- <?php
- $con= mysqli_connect("localhost", "root", "", "project");
- if(!$con)
- {
- die('not connected');
- }
- $con= mysqli_query($con, "select frstname,lastname,hello as (frstname+lastname) from registration");
- ?>
- <div>
- <td>Login Page Database</td>
- <table border="1">
- <th> First Name</th>
- <th>Last Name</th>
- <th>hello</th>
- <?php
- while($row= mysqli_fetch_array($con))
- {
- ?>
- <tr>
- <td><?php echo $row['frstname']; ?></td>
- <td><?php echo $row['lastname']; ?></td>
- <td><?php echo $row['hello']; ?></td>
- </tr>
- <?php
- }
- ?>
- </table>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement