Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Request {
- public static function get($request)
- {
- $arKey = null;
- $arVal = null;
- foreach ($request as $key => $value)
- {
- $arKey[] = $key;
- $arVal[] = $value;
- }
- $arRequest = array(0 => implode($arKey, ', '),
- 1 => implode($arVal, ', '));
- return $arRequest;
- }
- public static function input($name)
- {
- return $_REQUEST["{$name}"];
- }
- }
- class insert {
- public static function create($str1, $str2)
- {
- $sql = "insert into({$str1}) values ({$str2})";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement