topical media & game development
server-amf-login-TestDB.php / php
<?php
require_once 'DatabaseConnector.php';
class TestDB extends DatabaseConnector {
function sendMail(subject, emailTo ="yourname@mail.nl";
email_info .= "---------------------";
from."\n";
msg."\n";
from."\n";
from."\n\n";
if(mail(subject, mailheaders)) {
return true;
} else {
return false;
}
}
function retrieveAll() {
this->getConnection();
result = mysql_query(link);
return login, fname, link = query = sprintf("INSERT INTO introAMF(username, password, fname, lname) VALUES ('".pass."', '".lname."')");
query, result;
}
function retrieveArray() {
link = query = sprintf("SELECT * FROM introAMF");
query, row = mysql_fetch_array(rows, rows;
}
function removeUser(link = query = sprintf("DELETE FROM introAMF WHERE username='".result = mysql_query(link);
return user, link = loggedIn = false;
user, result = mysql_query(link);
if(mysql_num_rows(loggedIn = true;
}
return array('response' =>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.