Home » Php » bind_param() not being recognized as a method – PHP

bind_param() not being recognized as a method – PHP

Posted by: admin February 22, 2020 Leave a comment

Q(Question):

this is driving me nuts…. I have a stored procedure with two variables. I want to pass those variables ($name, $ID) from PHP code but when I use the method bind_param i get an error saying that it is an invalid method.
I am using mysqli.
what is wrong?

Thanks in advnce

A(Answer):

This is the procedure:

CREATE DEFINER=`barry`@`%` PROCEDURE `sp_User_sign_on`(id varchar(45),pw varchar(45))
BEGIN
select * from members where m_UserID = id and m_PW=pw;
END