I attempted this by making a form that is in a "while" statement.
All the data shows up, but how would I submit over 200 entries with the click of a button?
Or can this be done?
FYI here is my code so far..
<?php
include 'db.php';
$today0 = date('D F d Y'); // Wed May 07 2003
?>
<form name="form1" method="post" action="daily-record_chk.php">
<table width="252" border="0" align="center" cellpadding="0" cellspacing="0">
<td colspan="4"><div align="left">
<input type="submit" name="Submit" value="Submit" />
</div></td>
<tr>
<td width="72">
<input name="id" type="hidden" id="id" value="<? echo $row['id']; ?>" />
<input name="date" type="hidden" size="35" value="<? echo $today0; ?>" /> </td>
<td colspan="3"><div align="right"> </div></td>
</tr>
<?
$result = mysql_query("SELECT id, area, carid, commodity, inout FROM railcar WHERE inout = 1 ORDER by area;")or die(mysql_error());
while($row=mysql_fetch_array($result))
{
?>
<tr>
<td>
<input name="area" type="text" id="area" value="<? echo $row['area']; ?>" size="12"> </td>
<td colspan="2">
<input name="carid" type="text" id="carid" value="<? echo $row['carid']; ?>" size="18" /> </td>
<td width="72">
<input name="commodity" type="text" id="commodity" value="<? echo $row['commodity']; ?>" size="12" /> </td>
</tr>
<?php
}
mysql_close();
?>
</table>
</form>
This is to show all the railcars onsite each day.
The database would have around 100 cars in it, but maybe only 200 cars onsite.
So it would be very handy to have a 1 button entry if possible.
Thanks for any help,
Hooch
