Jump to content

ConCat help


bach

Recommended Posts

I have the following SELECT statement
[code]SELECT s_name, s_firstname, CONCAT_WS('-', LEFT(s_phone, 4), MID(s_phone, 5, 3), RIGHT(s_phone, 4))
FROM `bridgend`.`sam`
ORDER BY s_name asc;[/code]

When displaying s_phone nothing is displayed on the my site.  s_name and s_firstname is displayed would I somehow have to put concat_ws in a temp variable so I can display it on my site.

Regards
Link to comment
https://forums.phpfreaks.com/topic/24494-concat-help/
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.