Recent Posts
PHP | 4 sec ago
PHP | 23 sec ago
Bash | 33 sec ago
C | 37 sec ago
C++ | 38 sec ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By Stig on the 21st of Nov 2008 07:29:08 AM
Download |
Raw |
Embed |
Report
<?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.
Make A New Post