I'm having a problem that tells me I'm about 10 seconds away from fixing it with urlencode and rawurlencode.
I'm trying to use either of those functions to encode records returned in a data set that contain spaces in paths to file names.
Here's the code that I'm using:
<a href = "rawurlencode ('.$row["ImgPath"] .')" / "rawurlencode('.$row ["Filename"].')">
<img src ="rawurlencode('.$row ["Thumbpath"].')" / "rawurlencode('.$row ["Filename"].')" border = 0> </a>
This returns:
I know that the syntax is very close, as it's encoding the path, but it's returning in the wrong syntax.
Any suggestions would be appreciated.
I'm trying to use either of those functions to encode records returned in a data set that contain spaces in paths to file names.
Here's the code that I'm using:
<a href = "rawurlencode ('.$row["ImgPath"] .')" / "rawurlencode('.$row ["Filename"].')">
<img src ="rawurlencode('.$row ["Thumbpath"].')" / "rawurlencode('.$row ["Filename"].')" border = 0> </a>
This returns:
I know that the syntax is very close, as it's encoding the path, but it's returning in the wrong syntax.
Any suggestions would be appreciated.