NYCPHP Meetup

NYPHP.org

[nycphp-talk] say it ain't so RE mysqli_stmt_bind_param()

Hans Zaunere lists at zaunere.com
Sun Mar 27 14:54:24 EST 2005


> Is it correct that you have to do something like this:
> 
> mysqli_stmt_bind_param($stmt, "ssssssss",
>     $student['lastname'],
>     $student['firstname'],
>     $student['middle_initial'],
>     $student['address1'],
>     $student['city'],
>     $student['state'],
>     $student['postal_code'],
>     $student['email']
>     );

Correct - that's typical prepared statement syntax.  It's really not too bad once you get used to it - it's also trivial to write a wrapper function.

H





More information about the talk mailing list