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 20:02

On Wed, 24 Jan 2007 20:04:32 +0100, rukkie <rukkie@belgacom.net> wrote:
> thanks a lot.

You'd really thank me by starting to bottompost instead of toppost.

>> >> '<input name=3D"update['.$id.']" value=3D"UPDATE" type=3D"submit">=
'
>> >>
>> >> In the update:
>> >> $id =3D intval(reset(array_keys($_POST['update'])));
>>
>> > Now I get some weird warning :
>>
>> > Warning: array_keys(): The first argument should be an array in
>> > xxxx.php on line 9Did you alter the name of the input like I told y=
ou?
>> The HTML-source should look like: '<input name=3D"update[123]"
>> value=3D"UPDATE">';
>> After posting, var_dump $_POST to see what it contains.
>>
> At the end I've got it working with this part of code : <?echo "<input=

> name=3D\"update[".$nt['id']."]\""; ?>
> Some quotes and/or double quotes makes the difference

That's why I said:
'<input name=3D"update['.$id.']" value=3D"UPDATE" type=3D"submit">'
Seems a lot more readable then:
"<input name=3D\"update[".$nt['id']."]\"" value=3D\"UPDATE\" =

type=3D\"submit\">";
-- =

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

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