Re: [PHP] mysqli question

2011-11-12 Thread Peet Grobler
On 2011-11-13 1:42 AM, Tommy Pham wrote: >>or db_error ($dbh, $__FILE__, $__LINE__); > > __FILE__ are reserved keywords __LINE__. If you intended to use > variables represent the similar meaning, the suggested approach would Yes, sorry, was a bit quick there - I'm using __FILE__ __LINE_

Re: [PHP] mysqli question

2011-11-12 Thread Tommy Pham
On Sat, Nov 12, 2011 at 6:15 AM, Peet Grobler wrote: > Not sure if this is the correct mailing list to be asking this question > but here goes: > > I've got a prepared statement. > > $stmt = $dbh->prepare ("insert into test values (?, ?)") >        or die ("Error: " . $dbh->error); > $stmt->bind_p

[PHP] mysqli question

2011-11-12 Thread Peet Grobler
Not sure if this is the correct mailing list to be asking this question but here goes: I've got a prepared statement. $stmt = $dbh->prepare ("insert into test values (?, ?)") or die ("Error: " . $dbh->error); $stmt->bind_param ('ii', $var1, $var2) or die ("Error: " . $dbh->error);