Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SQLStatement {
- private $statement = "";
- public function __construct($statement) {
- $this->statement = $statement;
- }
- public function getStatement() {
- return $this->statement;
- }
- }
- class DBUtilities {
- static public function einfuegen($wert) {
- return new SQLStatement("INSERT INTO ... VALUES ($wert)");
- }
- }
- $db->query(DBUtilities::einfuegen("Hallo Welt")->getStatement());
Add Comment
Please, Sign In to add comment