ขึ้น error แบบนี้อะครับ You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ASC' at line 1
Code (PHP)
$strSort =$_POST["mySort"];
mysql_connect("localhost","root","");
mysql_select_db("dormitory");
mysql_query("SET NAMES UTF8");
$strSQL = "SELECT * FROM dormitory ORDER BY $strSort ASC ";
$objQuery = mysql_query($strSQL) or die(mysql_error());
$Num_Rows = mysql_num_rows($objQuery);