Posted by rjames.clarke on 10/22/38 11:26
I have the following.
$result=mysql_query($sql);
$nrows=mysql_num_rows($result);
for ($i=0;$i<$nrows;$i++)
{
$row_array=mysql_fetch_row($result);
echo "<form name='testform' action='ins_op.php' method='post'>";
lots of form stuff
echo "<td><input type='submit' value='Save'>";
echo "</form>";
}
I'd like to have the loop wait until the form submit is pressed before
it continues and grabs the next record from $row_array.
Right now the code displays all the records with their submit buttons.
Doing it in this form permits one query to the database to get all the
open records.
Alternative code structures would be entertained.
thanks
Navigation:
[Reply to this message]
|