Can someone tell me what is wrong with this syntax? Why doesnt it work?
$sql = "SELECT * FROM example ORDER BY '$so' "; // using wildcard to pull all data from Results
$result = mysql_query($sql);
further info:
$so = $_POST['SortOn']; (drop down list from a form)
if I do it as SELECT * FROM example ORDER BY $so (i.e. without the single quotes) it returns an error.