2 votes

Problem with SQLSTATE[HY093]: Invalid parameter number: parameter was not defined

Good I have a question, I pass $table that is a name of a table and I pass $id that is an integer to this function to make a select. I select the fields in the table where userid is equal to the id that e passed as a parameter. But when I run it I get this error. What am I doing wrong.

Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: parameter was not defined

HolaDevs.com

HolaDevs is an online community of programmers and software lovers.
You can check other people responses or create a new question if you don't find a solution

Powered by:

X