Sort using jquery and php -
Hello Guruji, what is wrong with this code, it works for the first time, when I make the header again, then an error tells where it is from
Jquery
Function sort (table header, sort arrow) {$. AJAX ({url: "sort.php", type: "meet", data: "table header =" + TableHeader + "& sortdirection =" + sortDir, success: function (data) {$ ("# t1"). Html (data);}}}} Php
$ table_Header = $ _ GET ['tableHeader']; $ Sort_Dir = $ _ received ['sortDir']; If ($ table_Header == 'to') {$ sort_By = 'player_name'; } And if ($ table_Header == 'to') {$ sort_By = 'player_name'; } And if ($ table_Header == 'Gr') {$ sort_By = 'grp_abr'; } If (isset ($ sort_Dir) & $ sort_Dir == 'DESC') {$ sort_Dir = 'DESC'; } And {$ sort_Dir = 'ASC'; } $ Str = stripslashes ('to'); Counterpart $ sortBy; $ Result = mysql_query ("Select from the player, player where player_id = from_user ORDER by player_name". Sort_Dir); Now " Tr>