Re: Prepared Statements Insert Problem
| From: | Ethan Rosenberg, PhD | Date: | Sun, 02 Sep 2012 19:16:17 +0000 |
| Subject: | Re: Prepared Statements Insert Problem | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-48449@lists.php.net to get a copy of this message | ||
Ethan Rosenberg, PhD
/Pres/CEO/
*Hygeia Biomedical Research, Inc*
2 Cameo Ridge Road
Monsey, NY 10952
T: 845 352-3908
F: 845 352-7566
erosenberg@hygeiabiomedical.com
On 09/02/2012 08:33 AM, Matijn Woudt wrote:
On Sun, Sep 2, 2012 at 6:45 AM, Ethan Rosenberg, PhD <erosenberg@hygeiabiomedical.com> wrote:No error. EthanDear List - I wish to accomplish the following with prepared statements: $stmt = mysqli_stmt_init($cxn);It seems you're missing a ')' here.if($stmt = mysqli_stmt_prepare($stmt, "INSERT INTO Intake3 (Site,MedRec, Fname, Lname, Phone, Height, Sex, Hx, Bday, Age) VALUES(?,?,?,?,?,?,?,?,?,?")!=0)Help and advice, please. Ethan Rosenberg=========== If that doesn't fix it, try printing mysqli_error($cxn) instead of "Ouch".. - Matijn +++++++++++