Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The above doesn't work when $orderfield is used, but when swapped with the actual field name "id" it works just fine. By not working, I mean it returns with "query returned empty". After a test print, it shows that $orderfield eq "id" which is the exact name of the column. Any ideas what might be hanging this up? And would it be possible to also change ASC/DESC to a variable as well? "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us" sulfericacid In reply to Using variables within a mysql query by sulfericacid
|
|