Home >Backend Development >PHP Tutorial > php中select获取val的值怎么传给sql语句

php中select获取val的值怎么传给sql语句

WBOY
WBOYOriginal
2016-06-13 12:40:30981browse

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 "

";
}
?>



}
}
}
?> 
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn