-3
<?php
include("config.php");
$cart=$_GET['cart'];
$numberofcart=$_GET['numberofcart'];
if ($cart) {
mysql_query("INSERT INTO trade (cart,price) values('$cart','150LE')");
}
?>
<form action="index.php" method="GET">
<input type="text" name="cart" />
<input type="text" name="numberofcart" />
<input type="submit" />
</form>
1ペン150LE
2ペン150LE
3ペン150LE で
iwantこのような繰り返しの数
「mysql_ *」を使用して停止します。 'mysqli_ *'や 'PDO'を使う –
そして[How To Ask](http://stackoverflow.com/help/how-to-ask)をご覧ください。 –
あなたの質問については、ループ – Mogzol