Home  >  Article  >  Backend Development  >  建表单有关问题

建表单有关问题

WBOY
WBOYOriginal
2016-06-13 12:41:24857browse

建表单问题
我想建一个如下表单


菜鸟一枚,在网上找到类似的代码,修改一通,效果完全不是自己想的那样


希望实现功能,商品名列出数据库中全部商品,在选框中勾选代表要购买该商品,请求指点。代码如下

nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



查询商品


   
    
      
        
          
 

              
                
         
                  
                  
                  
                  
                 
                
                
                
include('conn.php');//连接数据库。
mysql_query("use sale_system");
$sql=mysql_query("select commodity from stock");
$info=mysql_fetch_array($sql);

 do{
    ?>
                
购买 商品名 送单时段 订单备注
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