Posted by Auddog on 11/22/06 17:37
"BKDotCom" <bkfake-google@yahoo.com> wrote in message
news:1164216158.198664.247870@b28g2000cwb.googlegroups.com...
>
> Auddog wrote:
>> while (list($id, $fname, $lname) = mysqli_fetch_row($result))
>> {
>> echo " <tr>
>> <td><div align=center>$id</div></td>
>> <td>$fname</td>
>> <td>$lname</td>
>> <td><input name=hours type=text size=4 maxlength=4 />
>> </tr>";
>> }
>
>> The input box would be the hours input - I'm not sure I catch on to what
>> you
>> would do. Thanks for the help.
>>
>
> perhaps instead of '<input name=hours type=text size=4 maxlength=4 />'
> you do ''<input name="'.$id.'_hours" type="text" size=4 maxlength=4
> />''
>
> I assume that 'id' is unique for each from
> ??
>
This will make each input name unique by adding the '.$id.'_ - correct?
which is also the same id for each user? Then I can use the $_POST = array
to input into my database.
Navigation:
[Reply to this message]
|