Hi Rulian,
Many thanks for ur reply!!!
Now I m describing total problems:
I've "order" table in database. there are 3 fields - Id, Name, Comments. Here Id is auto increment. I m typing values in 'Name' field & it may be 1 or more, but 'coments' is 1 fixed value. I want to follow 1st one u described to me [].
So, the code like thid:
<input type = "text" name="id">
<input type = "text" name="name[]">
<input type = "text" name="com">
<input type = "submit" value = "Submit">
$id = $post['id'];
$name[] = $post['name']; // Is it ok?
$com = $_post['com'];
$q = "INSERT INTO order values('','$name','com')";
$r = mysql_query($q);
if($r){
echo "<td>ID</td>";
echo "<td>Name</td>";
echo "<td>Comments</td>";
while($data=mysql_fetch_array($r)){
echo "<td>".$data['id']."</td>";
echo "<td>".$data['name']."</td>";
echo "<td>".$data['Com']."</td>";
}
}
So, All values are stored in order table?
Plz edit if required...