Re: [PHP-DB] Wow, this is weird

2012-09-03 Thread tamouse mailing lists
On Mon, Sep 3, 2012 at 7:58 PM, David McGlone wrote: > Why was the brackets necessary? I thought that was what the single quotes > were for. I'm thinking the brackets join ['image'] and ['name'] otherwise the > query views it as 2 seperate queries. Correct? or were the brackets use to > group it a

Re: [PHP-DB] Re: Prepared Statements Insert Problem

2012-09-03 Thread tamouse mailing lists
On Mon, Sep 3, 2012 at 7:45 AM, Jim Giner wrote: > On 9/3/2012 2:44 AM, tamouse mailing lists wrote: >> On Sun, Sep 2, 2012 at 10:24 PM, Ethan Rosenberg, PhD >> wrote: >>> >>> mysqli_stmt_bind_result(): Number of bind variables doesn't match number >>> of >>> fields in prepared statement >> >> Wh

Re: [PHP-DB] Wow, this is weird

2012-09-03 Thread Karl DeSaulniers
On Sep 3, 2012, at 7:58 PM, David McGlone wrote: On Wednesday, August 29, 2012 01:33:20 PM you wrote: I think you must be missing the '{}' brackets, or something, because with this added to the snippet from before: $sql = "INSERT INTO inventory(image, year) VALUES('{$_FILES['image']['name']}

Re: [PHP-DB] Wow, this is weird

2012-09-03 Thread David McGlone
On Wednesday, August 29, 2012 01:33:20 PM you wrote: > I think you must be missing the '{}' brackets, or something, because > with this added to the snippet from before: > > $sql = "INSERT INTO inventory(image, year) > VALUES('{$_FILES['image']['name']}', '$_POST[year]')"; > echo '$sql = '.PHP_EO

Re: [PHP-DB] Re: Prepared Statements Insert Problem

2012-09-03 Thread Jim Giner
On 9/3/2012 2:44 AM, tamouse mailing lists wrote: On Sun, Sep 2, 2012 at 10:24 PM, Ethan Rosenberg, PhD wrote: mysqli_stmt_bind_result(): Number of bind variables doesn't match number of fields in prepared statement What exactly is unclear about that? Actually - from looking at the code the