Hello
I am calling variables from mysql and passing them in the URL. Trouble is they contain spaces. I think I need to use rawurlencode() but I cannot figure out how. I have seen examples like this:
<a href="mypage.php?variable=' .
rawurlencode('this is my image.jpg') . '">here</a>
but my code is in this format:
<a href=\"mypage.php?variable={$row['image']}\">".$row['image']."</a>
Can anyone tell me how to handle spaces in the URL when the variable is coming out of mysql?
Many thanks