title: How to store the object data in mysql db using php class function?
body: <p>I have created a table in DB with name "member" having field "name", "college", "email", "zid" now I have created a class(in php) like</p>
  
  <pre><code>class member
  { 
   private $name,$college,$email,$zid;
   private function adduser
   {
      //function definition
   }
   public function autherise($id)
   {
      //function definition
   }
  }
  </code></pre>
  
  <p>now at index page I am taking these value as input from user using html form(validated by JS) now at action page of form I want to create object as  obj=new member(); then calling the class function as obj->autherise($_post['zid']); 
  I want the defintion of autherise and adduser function like autherise check the uniqueness of zid and the calls adduser with remaining post variables and store them to object then  add whole object in one query to DB.</p>
  
  <p>I dont wan
  <code>insert into member(name,email,college,zid) values('$name,$email,$college,$zid')</code> 
  I want to enter obj directly to the db</p>
  
  <p>You can modify anything in functions</p>
  
  <p>Thanks in Advance!!!</p>