如何一次选择多个表格? 这是我的代码
<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());
}
?>
和Idunno下一步做什么我循环这个太多和ilogical我只是没有任何想法&gt;,&lt;
这是我想做的事情