[ACCEPTED]-PDO Error: " Invalid parameter number: parameter was not defined-parameterized-query
Accepted answer
The problem - and you will kick yourself 4 - is with :color
.
The array key for the value you 3 are passing for that marker when calling 2 execute()
is named :color:
. Remove the trailing :
(I'm guessing 1 this was just a typo anyway).
$stmt3->execute(array(
':room' => $Clean['room'],
':name' => $Clean['name'],
':message' => $Clean['message'],
':time' => $time,
':color' => $Clean['color'],
));
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.