Patrick Locke wrote:
Hi Kirk,
Like this:
SELECT RAWURLENCODE(File_Name) AS Name
FROM FILES
doesn't work
?
That's because rawurlencode is a php function, not a database function. I.e. you have to do it from wihtin php like so:
$result=run_query("select ".rawurlencode($url)." as Name from files");
i.e. this data needs to be massaged ahead of time to use rawurlencode, but I got the feeling from other posts he didn't want to do that.
Since he's using mysql, and I don't use it for jobs like that, I'm not sure what to do. It's doable with a view though. If MySQL has working views in beta, then it might be worth the time to test out a beta mysql and see if it will work with a view.