escape the image path properly and insert the data string
eg :
if path is /public_html/images/image.jpg
it has to be passed in to the sql statement like :
Code:
insert into pictures_table(image_path) Values('\/public_html\/images\/image\.jpg');
the \ is the escape character.