Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 14,372
» Latest member: michlalker
» Forum threads: 69,913
» Forum posts: 433,619

Full Statistics

Latest Threads
softDelete and database i...
Forum: CodeIgniter 4 Support
4 hours ago
» Replies: 17   » Views: 555
CodeIgniter 4 Logo
Forum: News & Discussion
7 hours ago
» Replies: 34   » Views: 9,658
Forum registration on hol...
Forum: News & Discussion
7 hours ago
» Replies: 2   » Views: 1,355
CodeModules Language Prop...
Forum: CodeIgniter 4 Discussion
9 hours ago
» Replies: 0   » Views: 70
Codeigniter application: ...
Forum: General Help
Today, 07:53 AM
» Replies: 0   » Views: 103
Undefined variable: admin...
Forum: General Help
Yesterday, 05:06 PM
» Replies: 9   » Views: 1,233
Do you have a hobby?
Forum: Lounge
Yesterday, 05:23 AM
» Replies: 28   » Views: 13,884
Captcha doest work on Lin...
Forum: General Help
Yesterday, 04:09 AM
» Replies: 3   » Views: 443
Jquery UI modal show not ...
Forum: General Help
Yesterday, 01:07 AM
» Replies: 8   » Views: 1,067
How do I replace front-en...
Forum: CodeIgniter 3.x
08-23-2019, 02:42 PM
» Replies: 9   » Views: 489

 
  Question about submission form to database
Posted by: ronniebel - 08-07-2019, 03:03 PM - Forum: General Help - Replies (6)

I'm pretty new at CodeIgniter. I'm now wanting to create my first submission form to my MySQL database. My database settings are correct in the database.php in the config folder. I know that I need a view page, a controller page and a model page for this task, but I need to see some samples that I can use and test.  I found some sample view, controller and model code on this page but I'm getting an error message on my test view page. Below is line 10 in the code. Any ideas what's happening? Or do you know any other places where I can copy the view, controller and model code to try to replicate this on my own site for practice?

PHP Code:
<?php echo form_open('insert_ctrl'); ?>


  Loading files into root directory folders in CodeIgniter.
Posted by: christaliise - 08-07-2019, 09:22 AM - Forum: General Help - No Replies

I have 5 problems, the 5th is a potential problem. It is probably best to deal with one problem at a time.

(1) The posted information does not load into the folders. I have tried deleting the country folder but it makes no difference.

(2) If a different Username is used it declares an error that the Username exists. The is_unique function is not working. I have tried deleting the country folder but it makes no difference.

(3) When the root folder is deleted the above errors are the same as when the folder exists.

(4) I have tried to check if username exists in the members folder, as per the coding below but that coding doesn't work.

(5) Will need to login when the information is loaded, using the Username & Password.

Basically, the coding below was taken from another person's project, which worked, but I have changed things to suit my project and the difference with that other person's project and what I'm trying to do is that the Username and Password information was loaded into a database, whereas I don't want to use a database. In that other project the Certificate was loaded into a folder in the root directory the same as what I'm trying to do, but I also want to load the Username and Password into the root directory folders the same as the Certificate. Also in that other person's project there was no country folder. All of that maybe the cause of my problems but I don't know how to fix, despite studying the CI UserGuide.

The coding below creates the folders in the root directory as expected and as follows.

accounts/afghanistan/realname/username
accounts/afghanistan/realname/password
accounts/afghanistan/realname/certificate

But no information or pdf files are entered.

I would want the Username & Password information to be in PHP format.

Controller

PHP Code:
public function youraccount()
{

$error 0;
$realname "";
$certificate "";
$username "";
$password "";

$this->load->helper(array('form''url','file'));
$this->load->library('form_validation');
$this->load->library('upload');

if(isset(
$_POST['submit']))
$config = array(
array(
'field'=>'realname''label' => 'RealName''rules' => 'required|is_unique[user]''errors' => array('required' => 'Provide the %s''is_unique' => 'This %s already exists' )),
array(
'field'=>'username''label' => 'Username''rules' => 'required''errors' => array( 'required' => 'Provide the %s')),
array(
'field'=>'password''label' => 'Password''rules' => 'required''errors' => array( 'required' => 'Provide the %s')),
array(
'field'=>'certificate''label' => 'Certificate''rules' => 'callback_upload_certificate'));

$this->form_validation->set_rules($config);

if (
$this->form_validation->run() == FALSE// Every box is complete

{
$this->load->view('afghanistan/youraccount');
}
else
{

$realname $this->input->post('realname');
$username $this->input->post('username');
$password $this->input->post('password');
$certificate $this->input->post('certificate');

//check if username exists.
if(!is_dir('members/$username'))
$this->user_name->set_message('$username''The username does not exist');

//check if accounts dir exists. Otherwise, create the 'accounts' folder.
if(!is_dir('accounts/afghanistan'))

{
mkdir('accounts/afghanistan',0777,true);
}

//create folder to the project dir
mkdir('accounts/afghanistan/'.$realname.'/username',0777,true);
mkdir('accounts/afghanistan/'.$realname.'/password',0777,true);
mkdir('accounts/afghanistan/'.$realname.'/certificate',0777,true);

$config['upload_path'] = 'accounts/afghanistan/'.$youraccount->realname.'/certificate/';
$config['allowed_types'] = 'pdf';

$this->upload->initialize($config);

if (
$this->upload->do_upload('certificate'))

{
$img $this->upload->data();
$certificate 'accounts/afghanistan/'.$youraccount->realname.'/certificate/'.$img['file_name'];
}

redirect(BASE_URL.'afghanistan/login');

}

}
else
{

$this->load->view('afghanistan/youraccount');

}
}

public function 
upload_certificate($str)
{

$allowed_mime_type_arr = array('application/pdf');

if(isset(
$_FILES['certificate']['name']) && $_FILES['certificate']['name']!="")
{

$mime get_mime_by_extension($_FILES['certificate']['name']);

if(
in_array($mime$allowed_mime_type_arr))

{
return 
TRUE;
}
else
{

$this->form_validation->set_message('upload_certificate''Upload the Certificate in pdf format');

return 
FALSE;

}
}
else
{

$this->form_validation->set_message('upload_certificate''Provide the Certificate');

return 
FALSE;

}


View

PHP Code:
<?php
defined
('BASEPATH') OR exit('No direct script access allowed');
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">

<title>YourAccount</title>

<style type="text/css"> .rname { position: fixed; width: 100%; } </style>
<style type="text/css"> .valida { position: fixed; width: 100%; } </style>
<style type="text/css"> .uname { position: fixed; width: 100%; } </style>
<style type="text/css"> .validb { position: fixed; width: 100%; } </style>
<style type="text/css"> .pword { position: fixed; width: 100%; } </style>
<style type="text/css"> .validc { position: fixed; width: 100%; } </style>
<style type="text/css"> .cert { position: fixed; width: 100%; } </style>
<style type="text/css"> .validd { position: fixed; width: 100%; } </style>

</head>
<body>

<?php echo form_open_multipart('youraccount'); ?>

<div class="rname"> <input type="text" value="<?php echo isset($_POST['realname']) ? $_POST['realname'] : '';?>" name="realname" style="width: 10%; height: 5mm"; > </div>
<div class="valida"><?php echo form_error('realname'); ?> </div>
<div class="uname"> <input type="text" value="<?php echo isset($_POST['username']) ? $_POST['username'] : '';?>" name="username" style="width: 10%; height: 5mm"; ></div>
<div class="validb"><?php echo form_error('username'); ?> </div>
<div class="pword"> <input type="password" value="<?php echo isset($_POST['password']) ? $_POST['password'] : '';?>" name="password" style="width: 5%; height: 5mm"; ></div>
<div class="validc"><?php echo form_error('password'); ?> </div>
<div class="cert"> <input type="file" name="certificate" id="certificate" style="width: 100%; height: 5mm"; > </div>
<div class="validd"><?php echo form_error('certificate'); ?> </div>
<div class="sub"> <div><input type="submit" value="Submit" name="submit" ></div></form>

</body>
</html 

I want the information that is entered into the text boxes and the pdf file to be loaded into the root directory folders.

UPDATE 08/08/19

I've changed this line-
PHP Code:
$config['upload_path'] = 'accounts/afghanistan/'.$youraccount->realname.'/certificate/'

To this-
PHP Code:
$config['upload_path'] = 'accounts/afghanistan/'.$realname.'/certificate/'

Now I have the pdf certificate loading into the folder.

UPDATE 16/08/19

I've added the following to the above Controller script, but that shouldn't change the performance or add or reduce the problems.

PHP Code:
if(!is_dir('accounts'))
{
mkdir('accounts',0777,true);
}
//check if accounts/afghanistan dir exists. Otherwise, create the 'accounts/afghanistan' folder. 

I now get the accounts & country folders created and the "first" RealName folder is created and the Username, Password, and Certificate subfolders are created. And as I said in the last update the pdf certificate loads into the folder.

But I now have 2 additional problems.

(1) With is_unique enabled every additional RealName produces the error "already exists" when there is no other existing.

(2) If I disable is_unique I can not create subsequent RealName folders, in other words "second" or "third" RealName folders. I have tried creating another Country folder which works but I can only use the "first" RealName. Or put another way if I use "John Doe" as the "first" RealName I can not use "Bill Smith" or "Joe Blog" as "second" or "third" RealNames as the folders will not create, but the "John Doe" folder will create and regardless of which country.

Those 2 problems appear to be CodeIgniter bugs because I've tried numerous variations of coding.

Or does somebody have the solution?

Also, I need to learn how to transfer the contents of the text boxes into a PHP file. I guess there should be a template PHP file that is copied and then the text box content added, then the copied file loaded into the folders the same as the PDF file is loaded into the Certificate folder.

Can that be done in CodeIgniter or maybe Javascript?


  Best CMS for CodeIgniter
Posted by: ronniebel - 08-07-2019, 08:29 AM - Forum: General Help - Replies (1)

I'm building a web app for an educational non-profit and teachers volunteering for the non-profit need to make updates to CodeIgniter pages. What is a good CMS for CodeIgniter to use in such a case?


  How to retrieve $_SESSION variable out of CI
Posted by: nunenthal - 08-07-2019, 08:28 AM - Forum: General Help - Replies (1)

Hello,

If fact it's simple, I use CI and in my admin I use the $_SESSION['auth'] to secure my admin.

In my admin I use ckeditor with fileman as image uploader.

I need to secure fileman by use my $_SESSION['auth'] variable, but there is no $_SESSION variable in security.php which is the file to secure fileman.

I can just retrieve the variable ci_session, this is a part of extract_var($GLOBALS).

'_COOKIE' => 
 array (
   'PHPSESSID' => 'bkf4lii33uvilgle2294ja3dn2',
   'ckCsrfToken' => 'RcUP2LBI2Ad74hDzLFj6d7kGtAMTKCUPKPASZdd3',
   'KCFINDER_showname' => 'on',
   'KCFINDER_showsize' => 'off',
   'KCFINDER_showtime' => 'off',
   'KCFINDER_order' => 'name',
   'KCFINDER_orderDesc' => 'off',
   'KCFINDER_view' => 'thumbs',
   'KCFINDER_displaySettings' => 'off',
   'ci_session' => 'm5hu8v0ffv3jmvfe1n6vj2bkhgoa5t32',
   'roxyview' => 'thumb',
   'roxyld' => '/fileman/upload',
 ),

my question is simple, is it possible to retrieve my $_SESSION['auth'] variable with my ci_session number ?


  Email notification not working anymore?
Posted by: includebeer - 08-07-2019, 08:05 AM - Forum: Lounge - Replies (6)

It looks like the email notification doesn't work anymore. I no longer receive email when somebody reply to a thread I'm subscribed to.


  Basic PHP question
Posted by: ronniebel - 08-06-2019, 05:22 PM - Forum: General Help - Replies (9)

What's the difference between these two below? Why would one be better than the other? I'm new so I new to PHP, so an easy-to-understand answer would be helpful.

PHP Code:
<?php
echo '<h2>My Site</h2>'
?>
verses just straight html

Code:
<h2>My Site</h2>


  Variable 'sql_mode' can't be set to the value of
Posted by: dreamweaver - 08-06-2019, 09:27 AM - Forum: Lounge - Replies (2)

A Database Error Occurred
Error Number: 1231
Variable 'sql_mode' can't be set to the value of 'REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE( @@sql_mode'
SELECT * FROM `blog`
Filename: models/Blog_model.php
Line Number: 70


Hi, I have just recently uploaded my website to a server. Check it out its for a friend https://flutterflyessentials.000webhostapp.com/. And now when I try and log in I keep getting this error.

If anyone can help, and also if anyone is able to test my website and find vulnerabilities, its all educational for me.


  How to work with multiple Entity Managers and Connections in a same functions
Posted by: surma - 08-06-2019, 07:43 AM - Forum: General Help - Replies (6)

I am using Codeigniter 3 for my application and I created two database connections i.e Company and History. Now I want to make 2 queries where query 1 call company entity manager and second query call History Entity manager. These query should be called in one function where i get stuck
here is my code

    $companies=$this->em->getRepository('comEntities\Company')->findAll();

    $histories=$this->em->getRepository('HistoryEntities\History')->findAll();
        
This is the error which I get

Message:
require(C:\xampp\htdocs\myApp\application\models/companies\comEntities\Company.php):failed to open stream: No such file or directory

Filename: third_party/ClassLoader.php

Line Number: 181


  App Starter won't update to beta 4
Posted by: includebeer - 08-06-2019, 04:04 AM - Forum: CodeIgniter 4 Support - Replies (9)

I'm new with composer, so I'm not sure what I am doing. I installed the app starter with composer some time ago. Now I do a "composer update" and it won't update to beta 4. In composer.lock the version is v4.0.0-beta.3, if I change it for beta.4 it revert back to beta.3.  Huh


  Need help with Cyrillic
Posted by: snup55 - 08-05-2019, 08:55 AM - Forum: General Help - Replies (3)

click send knocks this out:

PHP Code:
A Database Error Occurred
Error Number
1366

Incorrect string value
'\xD0, \xD0, ...' for column 'actors' at row 1

INSERT INTO 
`video` (`actors`, `type`, `title`, `title_en`, `description`, `duration`, `thumbnail`, `countries`, `year`, `genre`, `translator`, `embed_url`, `category_id`, `date`) VALUES ('�, �, �, �, �, �, �, �, �, �''vimeo''Обитель тьмы Гарта Маренги''Garth Marenghi\'s Darkplace''Пародия на телевизионные хоррор-шоу 80-х (дешёвое производство, ужасные диалоги, комическое насилие). События происходят в больнице в Ромфорде, расположенной на воротах в ад.'22'https://st.kp.yandex.net/images/film_iphone/iphone360_471995.jpg''Великобритания'2004'ужасы''Проф. Одноголосый''//kodik.info/serial/14257/ba35b673de10ac170145bacc091c7178/720p''1''05 Aug, 2019')

FilenameC:\Users\snup\Downloads\OSPanel\domains\serialturk.ga\system\database\DB_driver.php

Line Number
330 

already googled about half the Internet can't solve a problem with the Cyrillic alphabet

PHP Code:
{
 
 "time""1ms",
 
 "total"3,
 
 "results": [],
 
 "": {
 
   "id""serial-17693",
 
   "type""foreign-serial",
 
   "link""//kodik.info/serial/17693/25c2955ee8f0502e1ca2906f78aa1b9a/720p",
 
   "title""Тёмная сеть",
 
   "title_orig""Dark/Web",
 
   "translation": {
 
     "id"920,
 
     "title""Octopus"
 
   },
 
   "year"2019,
 
   "last_season"1,
 
   "last_episode"8,
 
   "episodes_count"8,
 
   "kinopoisk_id""1008788",
 
   "imdb_id""tt5600406",
 
   "quality""WEB-DLRip",
 
   "camrip"false,
 
   "blocked_countries": [],
 
   "blocked_seasons": {},
 
   "created_at""2019-07-22T03:18:03Z",
 
   "updated_at""2019-07-22T03:18:03Z",
 
   "material_data": {
 
     "title""Тёмная сеть",
 
     "title_en""Dark/Web",
 
     "year"2019,
 
     "poster_url""https://st.kp.yandex.net/images/film_iphone/iphone360_1008788.jpg",
 
     "countries": [
 
       "США"
 
     ],
 
     "genres": [
 
       "ужасы"
 
     ],
 
     "kinopoisk_votes"29,
 
     "imdb_rating"5.2,
 
     "imdb_votes"189,
 
     "premiere_world""2019-02-08",
 
     "actors": [
 
       "Брайан Элердинг",
 
       "Лана МакКиссак",
 
       "Майкл Нарделли",
 
       "Сибонгиле Мламбо",
 
       "Ноеми Гонзалез",
 
       "Рене Хегер",
 
       "Роб Раш",
 
       "Айми МакКэй",
 
       "Эмилио Россал",
 
       "Николас Брендон"
 
     ],
 
     "directors": [
 
       "Рокси Ших",
 
       "Марио Мисионе",
 
       "Боман Модин"
 
     ],
 
     "producers": [
 
       "Марио Мисионе",
 
       "Майкл Нарделли",
 
       "Тим Нарделли"
 
     ],
 
     "writers": [
 
       "Марио Мисионе",
 
       "Боман Модин",
 
       "Майкл Нарделли"
 
     ],
 
     "composers": [
 
       "Джонатан Хартман",
 
       "Нуну Малу",
 
       "Роб Гоки"
 
     ],
 
     "editors": [
 
       "Йен Пэкстон"
 
     ],
 
     "designers": [
 
       "Роберт Уайз",
 
       "Трэйси Хэйс",
 
       "Аннинка Велье"
 
     ],
 
     "operators": [
 
       "Ларс Линдстрём",
 
       "Шелдон Чау",
 
       "Аллен И. Хо"
 
     ]
 
   }
 
 },
 
 " (copy)": {
 
   "id""serial-17922",
 
   "type""foreign-serial",
 
   "link""//kodik.info/serial/17922/8d7e152a3b09eb130f7150bbc554a2a0/720p",
 
   "title""Тёмная сеть",
 
   "title_orig""Dark/Web",
 
   "translation": {
 
     "id"879,
 
     "title""TVShows"
 
   },
 
   "year"2019,
 
   "last_season"1,
 
   "last_episode"8,
 
   "episodes_count"8,
 
   "kinopoisk_id""1008788",
 
   "imdb_id""tt5600406",
 
   "quality""WEB-DLRip 1080p",
 
   "camrip"false,
 
   "blocked_countries": [],
 
   "blocked_seasons": {},
 
   "created_at""2019-08-05T00:25:25Z",
 
   "updated_at""2019-08-05T00:25:25Z",
 
   "material_data": {
 
     "title""Тёмная сеть",
 
     "title_en""Dark/Web",
 
     "year"2019,
 
     "poster_url""https://st.kp.yandex.net/images/film_iphone/iphone360_1008788.jpg",
 
     "countries": [
 
       "США"
 
     ],
 
     "genres": [
 
       "ужасы"
 
     ],
 
     "kinopoisk_votes"29,
 
     "imdb_rating"5.2,
 
     "imdb_votes"189,
 
     "premiere_world""2019-02-08",
 
     "actors": [
 
       "Брайан Элердинг",
 
       "Лана МакКиссак",
 
       "Майкл Нарделли",
 
       "Сибонгиле Мламбо",
 
       "Ноеми Гонзалез",
 
       "Рене Хегер",
 
       "Роб Раш",
 
       "Айми МакКэй",
 
       "Эмилио Россал",
 
       "Николас Брендон"
 
     ],
 
     "directors": [
 
       "Рокси Ших",
 
       "Марио Мисионе",
 
       "Боман Модин"
 
     ],
 
     "producers": [
 
       "Марио Мисионе",
 
       "Майкл Нарделли",
 
       "Тим Нарделли"
 
     ],
 
     "writers": [
 
       "Марио Мисионе",
 
       "Боман Модин",
 
       "Майкл Нарделли"
 
     ],
 
     "composers": [
 
       "Джонатан Хартман",
 
       "Нуну Малу",
 
       "Роб Гоки"
 
     ],
 
     "editors": [
 
       "Йен Пэкстон"
 
     ],
 
     "designers": [
 
       "Роберт Уайз",
 
       "Трэйси Хэйс",
 
       "Аннинка Велье"
 
     ],
 
     "operators": [
 
       "Ларс Линдстрём",
 
       "Шелдон Чау",
 
       "Аллен И. Хо"
 
     ]
 
   }
 
 },
 
 " (copy 2)": {
 
   "id""serial-17678",
 
   "type""foreign-serial",
 
   "link""//kodik.info/serial/17678/58647da25ae15b7ec12b88239a23509c/720p",
 
   "title""Тёмная сеть",
 
   "title_orig""Dark/Web",
 
   "translation": {
 
     "id"794,
 
     "title""HDrezka Studio"
 
   },
 
   "year"2019,
 
   "last_season"1,
 
   "last_episode"8,
 
   "episodes_count"8,
 
   "kinopoisk_id""1008788",
 
   "imdb_id""tt5600406",
 
   "quality""WEB-DLRip 1080p",
 
   "camrip"false,
 
   "blocked_countries": [],
 
   "blocked_seasons": {},
 
   "created_at""2019-07-21T09:29:51Z",
 
   "updated_at""2019-07-23T09:35:17Z",
 
   "material_data": {
 
     "title""Тёмная сеть",
 
     "title_en""Dark/Web",
 
     "year"2019,
 
     "poster_url""https://st.kp.yandex.net/images/film_iphone/iphone360_1008788.jpg",
 
     "countries": [
 
       "США"
 
     ],
 
     "genres": [
 
       "ужасы"
 
     ],
 
     "kinopoisk_votes"29,
 
     "imdb_rating"5.2,
 
     "imdb_votes"189,
 
     "premiere_world""2019-02-08",
 
     "actors": [
 
       "Брайан Элердинг",
 
       "Лана МакКиссак",
 
       "Майкл Нарделли",
 
       "Сибонгиле Мламбо",
 
       "Ноеми Гонзалез",
 
       "Рене Хегер",
 
       "Роб Раш",
 
       "Айми МакКэй",
 
       "Эмилио Россал",
 
       "Николас Брендон"
 
     ],
 
     "directors": [
 
       "Рокси Ших",
 
       "Марио Мисионе",
 
       "Боман Модин"
 
     ],
 
     "producers": [
 
       "Марио Мисионе",
 
       "Майкл Нарделли",
 
       "Тим Нарделли"
 
     ],
 
     "writers": [
 
       "Марио Мисионе",
 
       "Боман Модин",
 
       "Майкл Нарделли"
 
     ],
 
     "composers": [
 
       "Джонатан Хартман",
 
       "Нуну Малу",
 
       "Роб Гоки"
 
     ],
 
     "editors": [
 
       "Йен Пэкстон"
 
     ],
 
     "designers": [
 
       "Роберт Уайз",
 
       "Трэйси Хэйс",
 
       "Аннинка Велье"
 
     ],
 
     "operators": [
 
       "Ларс Линдстрём",
 
       "Шелдон Чау",
 
       "Аллен И. Хо"
 
     ]
 
   }
 
 }


PHP Code:
    function add_vimeo_video()
    {
        
$urls            =    $this->input->post('url');
        
$number_of_url    =    $urls;                
        
$response json_decode(file_get_contents('https://kodikapi.com/search?token="MY-TOKEN"&kinopoisk_id='.$number_of_url.'&with_material_data=true',false), true);
        
//$response = json_decode( $curl, true );
        
        
$arr $response['results'][0]['material_data']['actors'];
        
        
$actors = array(); 
        foreach (
$arr as $key => $value) {
            
$actors[] = $value['actors'];
            
        }
        
$data['actors'        implode(", "$actors);
        
//var_dump($data['actors']); exit;
        //$data['actors']         =    $response['results'][0]['material_data']['actors'][0];
        
$data['type'             'vimeo';
        
$data['title'            $response['results'][0]['material_data']['title'];
        
$data['title_en'         $response['results'][0]['material_data']['title_en'];
        
$data['description'      $response['results'][0]['material_data']['description'];
        
$data['duration'         $response['results'][0]['material_data']['duration'];
        
$data['thumbnail'        $response['results'][0]['material_data']['poster_url'];
        
$data['countries'        $response['results'][0]['material_data']['countries'][0];
        
$data['year'             $response['results'][0]["year"];
        
$data['genre'            $response['results'][0]['material_data']["genres"][0];
        
//$data['director']       =    $response['results'][0]['material_data']['directors'];
        
$data['translator'       $response['results'][0]["translation"]['title'];
        
$data['embed_url'        $response['results'][0]['link'];
        
$data['category_id']    =    $this->input->post('category_id');
        
$data['date'              date("d M, Y");
        
$this->db->insert('video' $data);
    } 



  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.