Im having an error with select statment using pdo, and Im not understanding the reason why this is happening.
Do you see something wrong here?
I'm having this error:
Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: parameter was not defined in $readGallery->execute();
$delId = $_GET['delid'];
$thumb = $_GET['thumb'];
$folder = '../uploads/';
$readGallery = $pdo->prepare("SELECT * FROM gallery WHERE news_id = ?");
$readGallery->bindParam(':news_id', $delId);
$readGallery->execute();
$numGallery = $readGallery->rowCount();
WHERE news_id = :news_idthis isn'tmysqli();-)