How do I set ORDER BY params using prepared PDO statement?

后端 未结 8 2211
心在旅途
心在旅途 2020-11-22 15:37

I\'m having problems using params in the ORDER BY section of my SQL. It doesn\'t issue any warnings, but prints out nothing.

$order = \'column         


        
8条回答
  •  佛祖请我去吃肉
    2020-11-22 16:12

    Unfortunely I guess you could not make it with prepared statements. It would make it no cacheable since different columns may have values that could be sorted with special sorting strategies.

    Create query by using standard escapes and execute it directly.

提交回复
热议问题