i am trying to work on the following code in PHP with Class. This class contains the CRUD (create, read/fetch, update and delete) functions.
when m running it in wamp.... it gives the errors like:
in the insert case: Fatal error: Fatal error: Call to a member function exec() on a non-object in C:\wamp\www\new DAO\dao.php on line 37
in the fetch case: Fatal error: Call to a member function query() on a non-object in C:\wamp\www\new DAO\dao.php on line 53
in the update case: it is not working
in the delete case: Fatal error: Call to a member function query() on a non-object in C:\wamp\www\new DAO\dao.php on line 53
plz help me to solve these problems...... if not all but atleast one