Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php
  2. class Request {
  3. public static function get($request)
  4. {
  5. $arKey = null;
  6. $arVal = null;
  7. foreach ($request as $key => $value)
  8. {
  9. $arKey[] = $key;
  10. $arVal[] = $value;
  11. }
  12. $arRequest = array(0 => implode($arKey, ', '),
  13. 1 => implode($arVal, ', '));
  14. return $arRequest;
  15. }
  16. public static function input($name)
  17. {
  18. return $_REQUEST["{$name}"];
  19. }
  20. }
  21. class insert {
  22. public static function create($str1, $str2)
  23. {
  24. $sql = "insert into({$str1}) values ({$str2})";
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement