Page 1 of 1

mysqli_stmt_prepare() vs mysqli_prepare()

Posted: Fri Mar 06, 2009 5:32 pm
by kaisellgren
Hi,

I wonder what is the difference between mysqli_stmt_prepare() and mysqli_prepare(). The documentation, for change, has faulty information and in addition, it lacks of some.

I bet mysqli_prepare() is just an alias, but I am not 100% sure, and I must be.

Re: mysqli_stmt_prepare() vs mysqli_prepare()

Posted: Fri Mar 06, 2009 8:42 pm
by Benjamin
From what I see, mysqli_stmt_prepare is for procedural style whereas mysqli_prepare can be used as a method of the mysqli object.

http://us2.php.net/manual/en/mysqli-stmt.prepare.php

Re: mysqli_stmt_prepare() vs mysqli_prepare()

Posted: Fri Mar 06, 2009 8:55 pm
by kaisellgren
Hmm, a good point. I didn't notice that.