All pastes #546423 Raw Edit

Unnamed

public php v1 · immutable
·published 2007-06-07 01:51 UTC
rendered paste body
class quizeratzor() {private $sfpatterns = array('quiz' =>"INSERT INTO qz_quizzes(title, uid) VALUES('%s', '%d')",                            'quizzes' => "SELECT qzid, title FROM qz_quizzes WHERE uid = '%d'",                            'add_question' => "INSERT INTO qz_questions(question, qzid) VALUES('%s', '%d')",                            'the rest' => 'you must get it by now...');function __call($method, $args) {  $db = QzDB::get();  unshift($args, $this->sfpatterns[$method]);  return $db->get_result(call_user_func_array('sprintf', $args))}}