|
Posted by Zoe Brown on 11/16/80 11:26
<rjames.clarke@gmail.com> wrote in message
news:1126534438.501131.5840@g44g2000cwa.googlegroups.com...
>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.
why do you want to do this ? you can get all the data in one query
anyway...
Navigation:
[Reply to this message]
|