Solution to Fatal error : Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number in - PHP

The Code: // Count status comments $retval1_comment = $dbconnect->query('SELECT count(id) FROM fr_status_comment WHERE status_id = '.$status_id); $retval1_comment->execute(array(':status_id' => $status_id)); The Solution: Remove $retval1_comment->execute(array(':status_id' => $status_id));

Post a Comment

2 Comments

  1. One of the forms of independent work, which has a creative character, is the essay. In this article, research paper styles will tell you how to write an essay correctly on any topic and avoid common mistakes. You will learn about what the structure of an essay should be, what features distinguish an essay from other genres, how to choose a topic and correctly express your thoughts on paper.

    ReplyDelete

Good day precious one, We love you more than anything.