Re: [PHP-DB] Re: Problem with query

2013-06-25 Thread Jim Giner
On 6/25/2013 2:32 AM, OJFR wrote: Yeah, Jim, please explain what u mean by "Per the manual, associative arrays using string indices should always use ' ' around them. They work (as mentioned in the manual) but are wrong". As long as I remember I could use associative arrays in that way (ex. $_S

Re: [PHP-DB] Re: Problem with query

2013-06-25 Thread Toby Hart Dyke
The original post is here: http://news.php.net/php.db/48751 On 6/25/2013 1:02 PM, Michael Oki wrote: I'm sorry I've not been following the last three responses. In a nutshell, what "EXACTLY" does the poster of this issue want? On 25 June 2013 11:06, Toby Hart Dyke wrote: What Jim means is

Re: [PHP-DB] Re: Problem with query

2013-06-25 Thread Jim Giner
On 6/25/2013 6:06 AM, Toby Hart Dyke wrote: What Jim means is here in the manual: http://www.php.net/manual/en/language.types.array.php#language.types.array.donts In a nutshell: Always use quotes around a string literal array index. For example, /$foo['bar']/ is correct, while /$foo[bar]/ is

Re: [PHP-DB] Re: Problem with query

2013-06-25 Thread Michael Oki
I'm sorry I've not been following the last three responses. In a nutshell, what "EXACTLY" does the poster of this issue want? On 25 June 2013 11:06, Toby Hart Dyke wrote: > > What Jim means is here in the manual: > > http://www.php.net/manual/en/**language.types.array.php#** > language.types.ar

Re: [PHP-DB] Re: Problem with query

2013-06-25 Thread Toby Hart Dyke
What Jim means is here in the manual: http://www.php.net/manual/en/language.types.array.php#language.types.array.donts In a nutshell: Always use quotes around a string literal array index. For example, /$foo['bar']/ is correct, while /$foo[bar]/ is not. The reason is that without the quotes

RE: [PHP-DB] Re: Problem with query

2013-06-24 Thread OJFR
Yeah, Jim, please explain what u mean by "Per the manual, associative arrays using string indices should always use ' ' around them. They work (as mentioned in the manual) but are wrong". As long as I remember I could use associative arrays in that way (ex. $_SESSION['Cust_Num']). There's another

Re: [PHP-DB] Re: Problem with query

2013-06-23 Thread Richard Quadling
On 23 June 2013 21:37, Ethan Rosenberg, PhD wrote: > On 6/23/2013 2:31 PM, Ethan Rosenberg, PhD wrote: > >> Dear List - >> >> There is an error in my query, and I cannot find it. >> >> This fails: >> >> $_SESSION['Cust_Num'] = $_REQUEST['cnum']; >> $_SESSION['CustNum'] = $_REQUEST['cnum']; >> >>