/ Published in: PHP
just doodled this down, and haven't tried it yet to see what errors it generates once it's done.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php class dbControls { var $title = ''; var $content = ''; var $date = ''; function insertArticle() { $this->title = $_POST['title']; $this->content = $_POST['content']; } } ?>