Re: [PHP] Foreach and mydql_query problem

2013-07-23 Thread Karl-Arne Gjersøyen
Liam. > 3Sharp Ltd. > > T: 0845 6018370 > F: 0845 6018369 > > -Original Message- > From: Karl-Arne Gjersøyen [mailto:karlar...@gmail.com ] > Sent: 22 July 2013 12:39 > To: PHP Mailinglist > Subject: Re: [PHP] Foreach and mydql_query problem > > 2013/

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Jim Lucas
On 07/22/2013 04:39 AM, Karl-Arne Gjersøyen wrote: Might I suggest that you place your include for ../../tilkobling.php at the very top of this page? It would save you from possibly including it twice. // The acutual source code is below: // ==

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Jim Giner
Your original code snippet had some errors. It really couldn't have been what you wanted to do. Example: You have a named field of 'number_of_items' and then you try to retreive $_POST['number_of_itemsi']. That won't work. Then you have a var called $number_of_items which we don't see defi

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Stuart Dallas
On 22 Jul 2013, at 13:25, Karl-Arne Gjersøyen wrote: > 2013/7/22 Stuart Dallas > On 22 Jul 2013, at 12:56, Karl-Arne Gjersøyen wrote: > > > 2013/7/22 Stuart Dallas > > > >> > >> On 22 Jul 2013, at 08:04, Tamara Temple wrote: > >> > >>> On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen > >> w

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Stuart Dallas > On 22 Jul 2013, at 12:56, Karl-Arne Gjersøyen wrote: > > > 2013/7/22 Stuart Dallas > > > >> > >> On 22 Jul 2013, at 08:04, Tamara Temple > wrote: > >> > >>> On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen > >> wrote: > >>> > Hello again. > I have this this

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Stuart Dallas
On 22 Jul 2013, at 12:56, Karl-Arne Gjersøyen wrote: > 2013/7/22 Stuart Dallas > >> >> On 22 Jul 2013, at 08:04, Tamara Temple wrote: >> >>> On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen >> wrote: >>> Hello again. I have this this source code that not work as I want... >

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Stuart Dallas > > On 22 Jul 2013, at 08:04, Tamara Temple wrote: > > > On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen > wrote: > > > >> Hello again. > >> I have this this source code that not work as I want... > >> > >> THe PHP/HTHML form fields is generated by a while loop and look

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Tamara Temple > > On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen > wrote: > > > Hello again. > > I have this this source code that not work as I want... > > > > THe PHP/HTHML form fields is generated by a while loop and looks like > this: > > > > " required="required"> > > > > > > th

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Stuart Dallas
On 22 Jul 2013, at 08:04, Tamara Temple wrote: > On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen wrote: > >> Hello again. >> I have this this source code that not work as I want... >> >> THe PHP/HTHML form fields is generated by a while loop and looks like this: >> >> " required="required">

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Tamara Temple
On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen wrote: > Hello again. > I have this this source code that not work as I want... > > THe PHP/HTHML form fields is generated by a while loop and looks like this: > > " required="required"> > > > the php source code look like this: > if(!empty($

[PHP] Foreach and mydql_query problem

2013-07-21 Thread Karl-Arne Gjersøyen
Hello again. I have this this source code that not work as I want... THe PHP/HTHML form fields is generated by a while loop and looks like this: " required="required"> the php source code look like this: "; $sql = "UPDATE item_table SET number_item = '$item' WHERE date = '$todays_d