Jump to content

[SOLVED] CONCAT function with separator?


Daveyboy

Recommended Posts

I looked at the Mysql manual but cant find a way to seperate two strings with a space. For example,
when i run this query in php it comes out "firstnamelastname". I want it to be "firstname lastname".

$query = "SELECT CONCAT(firstname,lastname) FROM info WHERE id=$id";
Link to comment
https://forums.phpfreaks.com/topic/32409-solved-concat-function-with-separator/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.