Php – Concatenate first name and last name to form a full name field

MySQLPHP

I know a select command for it but it's only temporary. What can i do so it would be permanent? So if theres a record where the firstname is John and the lastname is Smith, in the fullname column, automatically it will generate a data of that record to be John Smith.

Best Answer

$querystring = "select concat(firstname,' ',lastname) as name from users";