Home > Article > Backend Development > php中select获取val的值怎么传给sql语句
php中select获取val的值如何传给sql语句
点击左边出现右边的数据
代码如下:帮忙看哈
<script><br />
<br />
document.getElementById("sel").value="3";<br />
document.getElementById("sel").fireEvent("onchange");<br />
function demo()<br />
{<br />
var d=document.getElementById("sel").value;<br />
document.getElementById("tex").value=d;<br />
alert(d);<br />
<br />
}<br />
</script>
require_once'admin/config.php';
if($conn){
$stmt=odbc_exec($conn,"SELECT DISTINCT [类别] FROM [网站商品视图] WHERE [类别] like 'A%'");
if($stmt){
$arr=array();
while($row=odbc_fetch_array($stmt)){
$arr[]=$row;
}
for($i=0;$i
if($i%4==0){
echo "