i am tryimg to add new row into my table which is the combination of 2 rows i tried writing this code
<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>
but i am getting an error can any one can rewrite the code if possible or can tell where the error lies.