How to sort rows of HTML table that are called from MySQL

前端 未结 6 1794
南方客
南方客 2020-11-27 15:12

I know it\'s such a basic thing, but a Google search hasn\'t shown me how to re-sort the rows after clicking the th links.

I\'ve got this:



        
6条回答
  •  鱼传尺愫
    2020-11-27 16:06

    //this is a php file
    
    
    
    
    
    
    
    




    "; echo ""; while ($row=mysql_fetch_array($sql)) {?> "; } echo "
    Id Name Email Password
    ";?>

    ------------------------------------------------------------------------ that is another php file Id Name Email Password "; echo ""; while ($row=mysql_fetch_array($sql)) {?> "; } echo "";?> that will sort the table using ajax

提交回复
热议问题