Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Connect
- $db = F("database/connect", array("localhost", "root", ""))->message;
- $db->selectDatabase("framework");
- $query = $db->newQuery()->message;
- $query->create("hello_table", array(
- "id" => "INT NOT NULL AUTO_INCREMENT",
- "name" => "VARCHAR(50) DEFAULT ''"
- ), "id"); // Primary key
- $db->execQuery($query);
- $query->reset()->insert("hello_table", array(
- "name" => "Caelan Stewart")
- );
- $db->execQuery($query);
- // Close connection
- $db->close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement