Substring Question...
Posted: Thu Jan 14, 2010 12:16 pm
I have this image in my database: http://thumbs.forrent.com/imgs/fr/prope ... 000020.jpg
And in my database I have this URL for the image.
Well, where the PHP comes in, to show the image I am taking the subtring of the image of the first 25 characters.
My code is: $subImage = substr($image,0,25) where $image is the URL given...
I want to be getting: "http://thumbs.forrent.com"
But I am getting just a number 1.
Any help would be great...
And in my database I have this URL for the image.
Well, where the PHP comes in, to show the image I am taking the subtring of the image of the first 25 characters.
My code is: $subImage = substr($image,0,25) where $image is the URL given...
I want to be getting: "http://thumbs.forrent.com"
But I am getting just a number 1.
Any help would be great...