You're very welcome, after you get some experience it's also a very good
thing to read other people's work, but I only recommend this when you
already know the basics and have quite a thorough knowledge of the most used
functions including: array, string and variable specific functions. There
are p
ok... this makes more sense now. I know in the past I tried to do
something similar with table names in the WHERE clause, and that
didn't work in the same manner.
Is there a better way to do what I'm trying to do? that is, sorting
within the SQL statement based on a supplied column name without o
Your workaround is probably what I would do myself.
Note: mysql_real_escape_string() is technically expecting a "string
value", although there is no harm using it, and it's not a bad idea to
avoid possible SQL malicious codes. Alternately, you can also write a
simple function using regular express