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

2012-09-03 Thread tamouse mailing lists
On Sun, Sep 2, 2012 at 10:24 PM, Ethan Rosenberg, PhD erosenb...@hygeiabiomedical.com wrote: mysqli_stmt_bind_result(): Number of bind variables doesn't match number of fields in prepared statement What exactly is unclear about that? -- PHP Database Mailing List (http://www.php.net/) To

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 erosenb...@hygeiabiomedical.com 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

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

2012-09-03 Thread David McGlone
On Wednesday, August 29, 2012 01:33:20 PM you wrote: snip 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 'h2$sql =

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: snip 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)

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 jim.gi...@albanyhandball.com wrote: On 9/3/2012 2:44 AM, tamouse mailing lists wrote: On Sun, Sep 2, 2012 at 10:24 PM, Ethan Rosenberg, PhD erosenb...@hygeiabiomedical.com wrote: mysqli_stmt_bind_result(): Number of bind variables doesn't match number

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 da...@dmcentral.net 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