/ Published in: PHP
will change to be more specific to what i want l8ter. Just basic at the moment.
Expand |
Embed | Plain Text
<?php //created by me... class apple { // connect to, and select the database private function connectDB(){ echo 'connected'; } // get table names function gettables(){ $this->connectDB(); $query = 'SHOW TABLES from form'; for ($i = 0; $i < $num_rows; $i++) { } } // list articles function goober() { $this->connectDB(); } } // insert article function insertArticle(){ or die; } // disconnect function disconnectDB(){ } } $art= new apple(); // instantiate the class $art->goober(); //retrieves articles and displays them //$art->insertArticle(); $art->disconnectDB(); ?>
Comments
Subscribe to comments
You need to login to post a comment.

need to modify insertArticle to use variables so it can post from a form. need to add delete function change database/table reference to my setup