|
Posted by rukkie on 01/24/07 17:23
Thanks for the reply ....
Now I get some weird warning :
Warning: array_keys(): The first argument should be an array in
xxxx.php on line 9
and line 9 is the line with : $id =
intval(reset(array_keys($_POST['update'])));
Any suggestion of what could be wrong ?
On 24 jan, 18:03, Rik <luiheidsgoe...@hotmail.com> wrote:
> On Wed, 24 Jan 2007 17:56:33 +0100, rukkie <ruk...@belgacom.net> wrote:
> > I first had defined the UPDATE button as : <input name="update"
> > value="UPDATE" type="submit">. That doesn't work ...
> > If I change the definition to <input name="update" value=<? echo
> > "UPDATE".$nt['id']; ?> type="submit">, then I can get the id number in
> > the update script, but the display is not that good, because you see
> > UPDATE1, UPDATE7,UPDATE4 and so on ...
> > So I need something, so I can find back in the update script for which
> > row the update button was pressed. Each row has his unique id (which is
> > not shown in the table)
>
> > Anyone has a suggestion on how to solve this ?'<input name="update['.$id.']" value="UPDATE" type="submit">'
>
> In the update:
> $id = intval(reset(array_keys($_POST['update'])));
> --
> Rik Wasmus
> * I'm testing several new newsreaders at the moment. Please excuse
> possible errors and weird content. *
[Back to original message]
|