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_
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
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);
3 matches
Mail list logo