Home  >  Article  >  Backend Development  >  php新人

php新人

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

php新人求助
如图,现在这个表中商品名是从数据库中导出来的。现在,我想实现将每一行的值对应起来,比如第一个复选框 购买 和 苹果 和 后面顾客填入的 订单备注联系起来,以便我将数据导入到数据库中。现在问题是我看了半天书,也不知道该如何联立起来每行数据。希望可以得到解答,万分感谢!



写的代码如下

nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br>
<br>
<br>
<meta><br>
<title>查询商品</title><br>
<br>

   
    
      
        
          
 

              
                
         
                  
                  
                 
                  
                 
                
                
                
include('conn.php');//连接数据库。
mysql_query("use sale_system");
$sql=mysql_query("select commodity from stock");
$info=mysql_fetch_array($sql);
购买 商品名 订单备注
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