我对PHP还是很陌生,想知道同时使用下拉和搜索功能查询表的最佳方法吗?看过各种指南等,但还没掌握。我正在使用以下代码列出所述表:
$sqlQ = 'SELECT w_Continent.ID, w_Continent.NAME, w_Country.Name, w_Country.Continent
FROM w_Continent JOIN w_Country
ON w_Continent.ID = w_Country.Continent
;';
$stmtRow = $db->query($sqlQ); //execute sql query
while ($rowOne = $stmtRow->fetchObject()) {
<td><?php echo $sqlQ->Name;?></td>
<td><?php echo $sqlQ->Name;?></td>
</tr>
<?php>