![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: "ORDER BY" clause silently failsby Corion (Patriarch) |
on Sep 12, 2015 at 06:58 UTC ( #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
|
|