php新人求助
如图,现在这个表中商品名是从数据库中导出来的。现在,我想实现将每一行的值对应起来,比如第一个复选框 购买 和 苹果 和 后面顾客填入的 订单备注联系起来,以便我将数据导入到数据库中。现在问题是我看了半天书,也不知道该如何联立起来每行数据。希望可以得到解答,万分感谢!
写的代码如下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br>
<html xmlns="http://www.w3.org/1999/xhtml"><br>
<head><br>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" /><br>
<title>查询商品</title><br>
</head><br>
<form action="createorder.php" method="post" ><br>
<tr valign="top" bgcolor="#FFFFFF"> <br>
<td height="81"><br>
<table width="100%" border="0" cellpadding="0" cellspacing="0"><br>
<tr><br>
<td height="90" align="center" valign="top"> <br><br>
<table width="650" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#625D59"><br>
<tr align="center" bgcolor="#CC99FF"><br>
<br>
<td width="40">购买</td><br>
<td width="40">商品名</td><br>
<br>
<td width="40">订单备注</td><br>
<br>
</tr><br>
<br>
<br>
<?php<br>
include('conn.php');//连接数据库。<br>
mysql_query("use sale_system");<br>
$sql=mysql_query("select commodity from stock");<br>
$info=mysql_fetch_array($sql); <div class="clear">
</div>










