/ Published in: PHP

will change to be more specific to what i want l8ter. Just basic at the moment.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?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(); print("<h2>".$row['title']."</h2>"); print($row["content"]."<br />"); } } // 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
