Thanks, I've been playing around a bit. It is not php (the echo statement) that causes the problem. It is the SELECT statement.
This may not be the right forum...but hopefully someone can give me a tip on how to correct my MySQL?
Im trying to use SUBSTRING(string,' ', 1) in my SELECT statement in order to get the first word (the left word) out of a word pair separated by a blank space.
(The column 'string' includes two words separated by a space)
If I try another substring syntax e g SUBSTRING(string,2,5) it works as it should, outputting a string of 5 characters starting at the second one.
Any ideas??