The syntax looks correct how you had it; therefore, as racek is suggesting, check if there are extra spaces. If there are, you will probably want to do TRIM on every occurrence of the username to ensure you don't have spaces in front since building directories out of first 1-2 characters.
Main Topics
Browse All Topics





by: racekPosted on 2009-05-01 at 09:22:55ID: 24280951
SELECT CONCAT('pix1/', LEFT(username,1),'/',LEFT( username,2 ), '/', TRIM(username) , '-1.jpg')