Huh? What do you want to add the quotes? MySQL or PHP? I don't think there is an easy way to do this in MySQL, but in PHP it should be easy. Just loop though every column in your result set for every row and do a pattern match for any character, and if one is found then modify the field to have quotes. Shouldn't take more than 6 lines.