Welcome to the Monastery | |
PerlMonks |
Re: "ORDER BY" clause silently failsby Corion (Patriarch) |
on Sep 12, 2015 at 06:58 UTC ( [id://1141742]=note: print w/replies, xml ) | Need Help?? |
A placeholder can only be a value, not the name of a column, so you will have to dynamically create the SQL for your case. To be safe from SQL injection, I recommend setting up the allowed values in a hash and validating against that:
In Section
Tutorials
|
|