for some reason, my database is getting newlines and spaces, etc. after the image names in a certain column (was a varchar, switched it to char), like this:
upload/Nte1282160654.jpg%20%20%20%20%0D%0A%20%20%20%20%0D%0A%20%20%20%20%0D%0A%20%20%0D%0A%0D%0A
( this is what i get after checking the utf8 encoding )
i need to strip this garbage out so i can get ahold of a valid URL to this image.
i tried doing this:
$pic = trim($entryPic);
in the php script that inserts the post value into the db, but no dice⦠any ideas anyone?