test insert class?


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments


You need to login to view comments.