Posted By

purpleraison on 03/16/07


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


test insert class?


 / Published in: PHP
 

just doodled this down, and haven't tried it yet to see what errors it generates once it's done.

  1. <?php
  2.  
  3. class dbControls {
  4. var $title = '';
  5. var $content = '';
  6. var $date = '';
  7.  
  8. function insertArticle()
  9. {
  10. $this->title = $_POST['title'];
  11. $this->content = $_POST['content'];
  12. }
  13. }
  14. ?>

Report this snippet  

You need to login to post a comment.