277 Topics
![]() | |
How to validate CSV file of only one column before getting uploaded | |
Hello friends, I want to develop a online typing tutor using codeigniter......for hindi language (typing in computer with the help of **hindi indic 3** or** hindi indic 2 typing tool**) .......i know the php and codeigniter with css.....please give me guidance to develop it......what language i need to learn.....and how … | |
I recently had to mass insert a really large text file of strings into MySQL. Here's how I did it. | |
Hello, Cek this site: www.advance-web-studio.com There is a white space underneath it that I do not know where it comes from. this is my index.php <b>Latest Projects:</b><br><br> <div> <a href="<?php echo base_url() ?>public/images/large pic8.jpg" title="Ecommerce - Vitoshop"><img src="<?php echo base_url() ?>public/images/large pic8.jpg" width="200px" height="180px" alt="turntable"></a> <a href="<?php echo base_url() ?>public/images/large … | |
Hi, I'm trying to create and save breadcrumbs from recursive function. I manage to display hierarchical tree using recursive function. but I'm I am having hard time creating breadcrumb and save them one by one to my database. here is my table cat_id parent_id title 10 0 shoes 11 0 … | |
i need someone who can give me his email so i can send my timetable generator software that is given me errors. please anyone who can be of assistance, i will be grateful. | |
I'm trying to create a web page that when user click on the below link,it will bring user to the next page <a href="../try/sewcutrptsummary?pro={$row ->idmsul}" target="blank"">Link My question is,how can i retrieve the same data from 1st page & display it in a textbox in 2nd page as shown in … | |
Hello there. I'm at a point where I have to set up a continuous integration environment. I have contributed to projects using CI before, but I have never set it up. I roughly know what it is supposed to do, but I could definitely use some help. In my head … | |
I have site using php frame work codigniter where I am using the mattdiamond/Recorderjs to record an audio file in blob content type then i am uploading it to the server but it is taking top much time to upload I want to minimize my uploading time. Max size of … | |
Hello Everyone. Please how can i make a Like button in PHP.. i want the button to be clicked. the button see the far i 've gone with the attachements... like feature starts from... line 84 - 107 | |
Hello, I'm trying to edit data from a selected table row by using contextmenu. But when I try to select a row for edting instead the **LAST DATA in a row** will fetch. Table: <div class="container"> <div class="row"> <div class="col-md-12"> <div class="table-responsive"> <table id="ppmpsupplies" class="table table-bordered table-hover" cellspacing="0" width="100%"> <thead> … | |
How to create a website by pressing a button? With one button "create a website" while the user press that button it will create another website which is exactly the same like the first one. The only difference is that it will allow the user to select any name as … | |
Hi, i am beginer to codeignitor,i know how to write basic active queries in CI. i want to know how to write a query(having multiple conditions,double parentheses) in which supports CI. query is: $query="SELECT * FROM `apply_special_leave` WHERE ((`from_date` <= '$dt1' AND '$dt1' <= `to_date`) OR (`from_date` between '$dt1' AND … ![]() | |
Having an issue passing info from the modal to the model so that I can do a where statement. The first line below is the link to open the modal. Works fine no issues. <td><a href="javascript:;" class="openModal" data-toggle="modal" data-target="#email_details_<?php echo $SP->fit_tv_rollout_info_id;?>"> <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> </a></td> <div id="email_details_<?php echo $SP->fit_tv_rollout_info_id;?>" … | |
controllers/Cspages.php public function index() { $this->load->helper('url'); $this->load->model('gallery_model'); $pic_unique_id = 18; // slider $data['pic'] = $this->gallery_model->get_picture($pic_unique_id); $this->load->view('index', $data); } views/index.php <?php foreach($pic as $pic_item): ?> <img src="<?php echo base_url('assets1/images/slider/'.$pic_item->pic_item );?>"> <?php endforeach;?> models/gallery_model.php public function get_picture($pic_unique_id) { $query = $this->db->get_where('galleries_pictures', array('picture_unique_id' => $pic_unique_id)); return $query->result(); } Now the result is: A … ![]() | |
Hi, I am inserting data using while onclick event in href using jquery post method, it works successfully, But in controller after insertion, I wrote $this->load->view('viewnames'); But it is not loading that viewnames.php It displays nothing | |
This is to enter the admin page: http://localhost/masterlinkci2/admin/ admin/views/login.php <?php $this->load->library('form_validation'); ?> <?php echo validation_errors(); ?> <?php echo form_open('cpages/ceklogin'); ?> <div class="login-card"> <center><?php //echo $warning; ?> <?php echo $this->session->flashdata('warning'); ?> </center> <h2>Gionda CMS Login</h2><br> <form> <div class="login"><input type="text" name="username" placeholder="Username"></div> <div class="login"><input type="password" name="password" placeholder="Password"></div> <br> <input type="submit" name="login" class="login … | |
site/views/index.php <?php foreach($pic as $pic_item): ?> { <img src="<?php echo base_url('assets1/images/slider/'.$pic_item->pic_item );?>"> } <?php endforeach; ?> controllers/Cspages.php public function index() { $this->load->model('gallery_model'); $pic_unique_id = 18; // slider $data['pic'] = $this->gallery_model->get_picture($pic_unique_id); $this->load->view('index', $data); } models/Gallery_model.php public function get_picture($pic_unique_id) { $query = $this->db->get_where('galleries_pictures', array('picture_unique_id' => $pic_unique_id)); return $query->result(); } How to fix … ![]() | |
Hello, Sending messages to this contact address giving an error message. Can anyone interpret why the error message appearing? ----- Forwarded Message ----- This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is … | |
Hello, I am trying to open pdf link that I place through tinymce. I add the link button through toolbar add or plugin in tinymce: https://www.tinymce.com/docs/plugins/link/ http://www.gsa-constructionspecialist.com/articles/article/detail/visi-dan-misi-training-names-gsa I wonder why I cannot open the pdf link that I place without having to enter the cpanel password? I already set the … ![]() | |
Fatal error: Call to a member function get_where() on a non-object in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\masterlinkci2\application\site\models\gallery_model.php on line 10 I try this : Line 10: $query = $this->db->get_where('galleries_pictures',array('pic_id'=> $pic_unique_id)); class Gallery_model extends CI_Model { public function get_picture($pic_unique_id) { $query = $this->db->get_where('galleries_pictures',array('pic_id'=> $pic_unique_id)); return $query->result(); } } IN Controller: public function index() … | |
The following code: <a href="<?php echo base_url('cpages/viewpicture/'.$this->uri->segment(3)); ?>" class="delete">BACK</a> Shows: BACK uri->segment(3); I am trying to erase uri->segment(3); part but do not know how to? | |
Hello, I am trying to place pdf link in CI: http://www.gsa-constructionspecialist.com/articles/article/detail/tugas-lpjk-ke-5 I wonder why I cannot link it. I already place the file address name, yet it comes back to the original file when I click it. Try another file which I copy exactly from the cpanel: http://www.gsa-constructionspecialist.com/articles/article/detail/visi-dan-misi-training-names-gsa It has … | |
Update has been successful. Setting has been successfully updated! A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: views/settings.php Line Number: 68 Backtrace: File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\companygiondaci\application\views\settings.php Line: 68 Function: _error_handler File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\companygiondaci\application\controllers\Cpages.php Line: 683 Function: view File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\companygiondaci\index.php Line: 315 … | |
Dazah API uses Redis to handle rate limiting. The goal is to limit every each client_id/user_id pair from making over 5,000 requests every 5 minutes. We use Codeigniter 3.x and it looks something like this: $flood_control = $CI->cache->get("user_limit:{$token_obj->client_id}:{$token_obj->user_id}"); if ($flood_control === false) { $CI->cache->save("user_limit:{$token_obj->client_id}:{$token_obj->user_id}", 0, 300); } else if ($flood_control … | |
/* initialize the calendar -----------------------------------------------------------------*/ var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); /* selects the events to load in the calendar -----------------------------------------------------------------*/ $.ajax({ url: 'process.php', type: 'POST', data: 'type=fetch', async: false, success: function(response){ json_events = response; } }); $('#calendar').fullCalendar({ //events: … | |
i have a array like array(2) { [0]=> array(18) { [0]=> array(8) { ["attandance_id"]=> string(3) "162" ["entry_date_time"]=> string(19) "0000-00-00 00:00:00" ["attandance_date"]=> string(10) "2016-04-06" ["class_id"]=> string(5) "11232" ["user_id"]=> string(5) "53697" ["status"]=> string(1) "3" ["timestamp_key"]=> string(27) "99b2f75ac6de8a52_1460025757" ["create_by"]=> string(1) "0" } [1]=> array(8) { ["attandance_id"]=> string(3) "163" ["entry_date_time"]=> string(19) "0000-00-00 00:00:00" ["attandance_date"]=> … | |
I am really having a problem with the facebook login with codeigniter. I am getting the login part, session and db query execution working just fine, but sometimes i keep getting a facebook api exception error screen. How can i get rid of this? Is there any work around for … | |
$sql = "SELECT doc FROM file_loc where file_id='1'"; while($results = mysql_query("$sql") or die("Invalid query: " . mysql_error()); { // set the header for the image header('Content-type: application/pdf'); header('Content-Disposition: inline; filename = "' .$results . '"'); header('Content-Transfer-Encoding: binary'); if (isset($results)) { $pdf = new FPDI(); // get the page count $pageCount … | |
Hi friends, I am going to build a website like http://www.myadsinn.com/. This site is about posting ads free. I am also needs feature like https://www.olx.com.pk/ Can any one is interested in it |
The End.