Hi, can i load the same table in the two drop-down list?
$DBName = Krista;
$Query = "select * from Parts";
$ResultPart0 = mysql_db_query( $DBName, $QueryPart, $linkID);
$ResultPart1 = mysql_db_query( $DBName, $QueryPart, $linkID);
.........
<tr><td>Part Number 0 from Inventory:</td>
<td><select name =\"Assembled_Pa rt\">");
$count = 0;
while($Row0 = mysql_fetch_arr ay($ResultPart0 )){
$count++;
print("<option value =\"$count\">$Ro w0[Part_Number]</option>");
}
print(" </select></td></tr>
<tr><td>Part Number 1 from Inventory:</td>
<td><select name =\"Assembled_Pa rt1\">");
$count1 = 0;
while($Row1 = mysql_fetch_arr ay($ResultPart1 )){
$count1++;
print("<option value =\"$count1\">$R ow1[Part_Number]</option>");
}
print(" </select></td></tr>
............... .....
............... ....
when i do like this, i can load from the table , but i cannot get the
result after i click the submit button. eg.
print $_GET['Assembled_Part 0'];
print $_GET['Assembled_Part 1'];
it can only show the first one result, do u guys have any idea for me
to solve it? I want to get both of them. Thanks
krista
$DBName = Krista;
$Query = "select * from Parts";
$ResultPart0 = mysql_db_query( $DBName, $QueryPart, $linkID);
$ResultPart1 = mysql_db_query( $DBName, $QueryPart, $linkID);
.........
<tr><td>Part Number 0 from Inventory:</td>
<td><select name =\"Assembled_Pa rt\">");
$count = 0;
while($Row0 = mysql_fetch_arr ay($ResultPart0 )){
$count++;
print("<option value =\"$count\">$Ro w0[Part_Number]</option>");
}
print(" </select></td></tr>
<tr><td>Part Number 1 from Inventory:</td>
<td><select name =\"Assembled_Pa rt1\">");
$count1 = 0;
while($Row1 = mysql_fetch_arr ay($ResultPart1 )){
$count1++;
print("<option value =\"$count1\">$R ow1[Part_Number]</option>");
}
print(" </select></td></tr>
............... .....
............... ....
when i do like this, i can load from the table , but i cannot get the
result after i click the submit button. eg.
print $_GET['Assembled_Part 0'];
print $_GET['Assembled_Part 1'];
it can only show the first one result, do u guys have any idea for me
to solve it? I want to get both of them. Thanks
krista
Comment