Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- ini_set("display_errors", 1);
- include_once $_SERVER['DOCUMENT_ROOT'].'/models/country.class.php';
- if( isset($_GET['oper']) ) {
- $oper = $_GET['oper'];
- if($oper === 'add') {
- //добавление страны в бд
- $data = $_POST;
- $data['create_date'] = Date("Y-m-d H:i:s");
- $country_class = new Country();
- $country_class->add($data);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement