3658l4 Listing 4. Connecting to MySQL mysql> CREATE TABLE parts ( partno int(11) DEFAULT '0' NOT NULL, parentpartno int(11), description char(255), price decimal(8,2), shipweight decimal(10,4), PRIMARY KEY (partno) ); -----------php code------------ $connection = mysql_connect("127.0.0.1","root","tiger"); $db="stores"; $query=mysql_db_query($db,"SELECT partno,parentpartno,description,price FROM parts ",$connection); $rowno=mysql_num_rows($query); if ($rowno) { echo "
"; echo ""; echo ""; echo ""; while($rowno-){ $row=mysql_fetch_array($query); echo "\n"; for($i=0;$i<4;$i++) { $value=$row[$i]; echo " "; } echo "\n"; // want to use partnumber as param to checkout // script,that is field 0 of query } echo "

Parts List

Part # Parent Part # Description Price Include in Cart
$value
"; } echo "";