You are here: Re: HTML table Update row PHP/MySQL « PHP Programming Language « IT news, forums, messages
Re: HTML table Update row PHP/MySQL

Posted by Rik on 01/24/07 17:03

On Wed, 24 Jan 2007 17:56:33 +0100, rukkie <rukkie@belgacom.net> wrote:
> I first had defined the UPDATE button as : <input name=3D"update"
> value=3D"UPDATE" type=3D"submit">. That doesn't work ...
> If I change the definition to <input name=3D"update" value=3D<? echo
> "UPDATE".$nt['id']; ?> type=3D"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 i=
s
> not shown in the table)
>
> Anyone has a suggestion on how to solve this ?

'<input name=3D"update['.$id.']" value=3D"UPDATE" type=3D"submit">'

In the update:
$id =3D intval(reset(array_keys($_POST['update'])));
-- =

Rik Wasmus
* I'm testing several new newsreaders at the moment. Please excuse =

possible errors and weird content. *

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация