Posted by Stig on Fri 21 Nov 07:29
report abuse | View followups from Dan Storm | download | new post
- <?php
- class database {
- function db_connect($server, $user, $pass, $database) {
- if(!$link) {
- }
- if(!$db_selected) {
- }
- }
- }
- class sql_query {
- function query($sql) {
- if(!$sql) {
- }
- }
- function getQuery($from, $what="*") {
- $sql = "SELECT $what from $from";
- $this->query($sql);
- }
- function insert($what, $column, $value) {
- $sql = "INSERT INTO $what ($column) VALUES ($value)";
- $this->query($sql);
- }
- }
- ?>
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.