[Solved] Store bids in microtime [closed]

Assuming a MySQL database, why not simply have a TIMESTAMP column on your database: http://dev.mysql.com/doc/refman/5.6/en/timestamp-initialization.html and leave MySQL to populate it for you 2 solved Store bids in microtime [closed]

[Solved] How to Join Two Table In mysql database and Fetch Records.?

$query = $this->db->query(“SELECT * FROM table-one JOIN table-two ON table-1-id = table-2-id”); return $query->result(); Note:- JOIN and ON are keywords to get data of both tables AND table-one and table-2 are your required tables AND table-one-id and table-two-id are the column names of both tables for the join solved How to Join Two Table In … Read more

[Solved] Error after loggin out

Change getDetails() method by this // $this->session->userdata[‘id’] to this code $this->session->userdata(‘id’) public function getDetails() { $st = $this->db->SELECT(‘cursadas.date as date, cursadas.grade as grade, usuarios.username as user, materias.name as subject’)->from(‘cursadas’) ->join(‘usuarios’,’usuarios.id=cursadas.user_id’) ->join(‘materias’,’materias.id=cursadas.subject_id’) ->WHERE(‘cursadas.user_id=’,$this->session->userdata(‘id’)) ->get()->result_array(); return $st; } see the link for more info https://www.codeigniter.com/user_guide/libraries/sessions.html#retrieving-session-data 3 solved Error after loggin out

[Solved] Play youtube and facebook video by url

have a look: [Embedded Video & Live Video Player] https://developers.facebook.com/docs/plugins/embedded-video-player Youtube: <html> <body> <iframe src=”http://www.youtube.com/embed/YOUR-YOUTUBE_VIDEO_CODE” width=”560″ height=”315″ frameborder=”0″ allowfullscreen></iframe> </body> </html> Replace YOUR-YOUTUBE_VIDEO_CODE with video code 0 solved Play youtube and facebook video by url

[Solved] Date format with codeigniter

The problem is hidden in the error message. Take a look at your SQL query syntax: DATE_FORMAT(news_articles’.date_posted’, `’%M` %D, `%Y’)` That doesn’t look right, does it? Because CI is trying to auto-protect your column names. So, to fix this, you need to pass FALSE to the second parameter of $this->db->select(), which will stop CI from … Read more

[Solved] PHP script stops working after sometime

In system/core/Codeigniter.php, search for set_time_limit you got below line of code .You can change here set_time_limit in codignator if (function_exists(“set_time_limit”) == TRUE AND @ini_get(“safe_mode”) == 0) { @set_time_limit(300);// change it according to your requirment } As there was no other way to avoid changing the core file, as well as give the infinite maximum execution … Read more

[Solved] Remove index.php from URL

Hi Sajid I used below code try I may be it will solve your problem. <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /your_folder/ #Removes access to the system folder by users. #Additionally this will allow you to create a System.php controller, #previously this would not have been possible. #’system’ can be replaced if you have renamed your … Read more

[Solved] How to Upload Image files Using Codeigniter? [closed]

Here is an example. Hope this would help you 🙂 in your controller. lets say upload.php public function upload() { if($this->input->post(‘upload’)) { $config[‘upload_path’] = APPPATH . ‘your upload folder name here/’; $config[‘file_name’] = filename_here; $config[‘overwrite’] = TRUE; $config[“allowed_types”] = ‘jpg|jpeg|png|gif’; $config[“max_size”] = 1024; $config[“max_width”] = 400; $config[“max_height”] = 400; $this->load->library(‘upload’, $config); if(!$this->upload->do_upload()) { $this->data[‘error’] = … Read more