This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* db.class.php | |
* | |
* My first attempt at a Database wrapper class in PHP using PDO. | |
* | |
* @author John McCarthy | |
* @version 1.0 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Request | |
{ | |
const TYPE_NONE = 0; | |
const TYPE_ALPHA = 1; | |
const TYPE_DIGIT = 2; | |
const TYPE_ALNUM = 3; | |
const GET = 10; | |
const POST = 11; | |
const COOKIE = 12; |