Php 我想对表名进行排序,就像对表中的字段列表进行排序一样

Php 我想对表名进行排序,就像对表中的字段列表进行排序一样,php,html,mysql,Php,Html,Mysql,如何一次选择多个表? 这是我的密码 <form action="this.php" method="post"> <input name="showthis" type="textbox" readonly="readonly" value="first_table" > <input name="showthis2" type="textbox" readonly="readonly" value="second_table" > &

如何一次选择多个表? 这是我的密码

<form action="this.php" method="post">
    <input name="showthis" type="textbox" readonly="readonly" value="first_table" >
    <input name="showthis2" type="textbox" readonly="readonly" value="second_table" >
    <input name="showthis3" type="textbox" readonly="readonly" value="third_table" >
    <input name="showthis4" type="textbox" readonly="readonly" value="fourth_table" >
    <input name="select" type="submit" value="select" >
</form>

<?php
    if(isset($_POST['select']))
    {
        $showthis = $_POST['showthis'];
        $showthis2 = $_POST['showthis2'];
        $showthis3 = $_POST['showthis3'];
        $showthis4 = $_POST['showthis4'];

        $doother = mysql_query("SELECT * from $showthis ORDER BY studentinfo") or die (mysql_error());

        $doother2 = mysql_query("SELECT * from $showthis2 ORDER BY studentinfo") or die (mysql_error());

        $doother3 = mysql_query("SELECT * from $showthis3 ORDER BY studentinfo") or die (mysql_error());
        $doother4 = mysql_query("SELECT * from $showthis4 ORDER BY studentinfo") or die (mysql_error());
    }  
 ?>

我不知道下一步该怎么做,但我循环了太多,我只是不知道>,<
这就是我要做的


ORDER BY studentinfo'附近您只能在
ORDER BY
中使用列名或表达式。什么是
studentinfo