459 Topics

Member Avatar for
Member Avatar for Anmol_4

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"]=> …

Member Avatar for ryantroop
0
212
Member Avatar for davy_yg

Hello, I need help with CI. Who can help me throughly for my CI problem. Please gives me several alternatives. Thanks in advance.

Member Avatar for diafol
0
175
Member Avatar for Mario A._1

I´m in disgrace with the framework Codeigniter version 2.2.0, it only displays the json response, no errors, no chart... Code **Model** function get_pata() { $this->db->select('theyear, cantidad_alumnos, rawkw, rawkwxgei'); $this->db->from('pdc_factor_gei'); $query = $this->db->get(); return $query->result(); } **Controller to handle data from Model and display in view;** function data_fik() { $data = …

Member Avatar for Mario A._1
0
368
Member Avatar for rjusman90

i am doing this in all my Controllers for Menu But i want to do that i give it once in core folder of CI Any Suggestion ? $data['cms_menus']=$this->database_model->GetRecords('cms_menus',false, array('FKMenuID'=>null)); foreach ($data['cms_menus'] as $key => $datas){ $data['cms_menus'][$key]['childs']=$this->database_model->GetRecords('cms_menus',false, array('FKMenuID'=> $datas['PKMenuID']));} `

Member Avatar for cereal
0
1K
Member Avatar for Ventech_IT

Hi guys just a quick question...when you upload a file to the database and the file name is saved and encrypted in codeigniter how do i make a link that when clicked will download the file associated with the id of the table entry? for instance this is my view …

Member Avatar for cereal
0
1K
Member Avatar for chandnee

$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 …

Member Avatar for cereal
0
788
Member Avatar for Muhammad_117

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

Member Avatar for rproffitt
0
1K
Member Avatar for ecinevenice

$filename ="cs_orderfrequency.xls"; $contents = $this->load->view('reports/order_frequency_excel',$data); header('Content-type: application/ms-excel'); header('Content-Disposition: attachment; filename='.$filename); This code enables me to export directly a view to excel file without having to use PHPExcel as thirdparty. Although it gives me an error of *"The file your trying to open is in a different format than specified by …

Member Avatar for cereal
0
247
Member Avatar for eno_1
Member Avatar for josh.sm

I started new Ecommerce website ..developed in php.(codeigniter)..and it is SEO friendly but we are in only gifting category .but any one please suggest me how attract people to our website.?

Member Avatar for jacks009
0
197
Member Avatar for Harmeet_2

Hi i m new with codeigniter Kindly help me how i display data in dropbox from database and save into datbase.

Member Avatar for Ajay Gokhale
0
136
Member Avatar for Prateek_2

I want to set cron job using codeigniter, in godaddy shared hosting i used the following code to execute `movies` controller's `cool` method. /web/cgi-bin/php5 "$HOME/html/MOVIESDOM.COM/index.php" movies cool Problem is it always execute default controller. Pls tell me how to execute `movies` controller's `cool` method

Member Avatar for Arfan_1
0
6K
Member Avatar for RudyM

Hi all, I'm using CodeIgniter with MSSQL and works ok for basic queries. But then I do the following: Add a varbinary(max) column to my table (new_col) Change the query in the model: `$this->db->get_where('user_stats_backup',array('new_col' => "0xD9E6762DD1C8EAF6D61B3C6192FC408D4D6D5F1176D0C29169BC24E71C3F274AD27FCD5811B313D681F7E55EC02D73D499C95455B6B5BB503ACF574FBA8FFE85")` When I load the page, it doesn't seem to be returning anything. I created …

Member Avatar for RudyM
0
309
Member Avatar for RudyM

Hi all, I've been wrestling with CodeIgniter to work with MSSQL. Turned out to be a whole ordeal with changing the functions to use the newly updated sqlsrv functions. After all that, I still seem to have issues with it. While I'm working this out, I wonder if anyone has …

Member Avatar for RudyM
0
161
Member Avatar for mohammed_22

I want to get all the related pics corresponding to the pic selected.... here is my view page <?php foreach($detail as $row){?> <img class="primary-image" ima="<?php echo base_url();?>images/<?php echo $row->image;?>" src="<?php echo base_url();?>images/<?php echo $row->image;?>" alt="" /> <?php }?> my control page looks like this.... public function product_details($p_id) { $data['active_mn']='product_details'; $data['product']=$this->roxmodel->get_product_details($p_id); …

Member Avatar for diafol
0
197
Member Avatar for prieku

I have a base64-encoded string on database row. How to create a .pdf file from this encoded string using codeigniter and mpdf ? foreach($report as $files) /* send email confirmation*/ $this->data['email'] = TRUE; require_once APPPATH.'third_party/MPDF561/mpdf.php'; $mpdf=new mPDF('c','A4','','',10,10,20,20,10,10); $mpdf->SetDisplayMode('fullpage'); $this->load->helper('custom_email'); $emailTo ="email@address.here"; $emailFrom =$this->config->item('email'); $emailSubject ='Subject Here'; $emailMessage ='Your PDF files …

Member Avatar for gabrielcastillo
0
2K
Member Avatar for mohammed_22

i want to display all related images according to the image selected here is my code... my control looks like this.. public function product_details($p_id) { $data['active_mn']='product_details'; $data['detail']=$this->roxmodel->get_related_image($p_id,4,0); var_dump($data['detail']); $this->load->view('product_details',$data); } my model looks like this public function get_related_image($p_id,$limit,$offset) { $this->db->order_by("gallery.id","desc"); $this->db->where('category_id',$p_id); $query=$this->db->get('gallery',$limit,$offset); return $query->result(); } my view page looks like …

0
101
Member Avatar for mohammed_22

here i want to display images according to the numbers given here is my view page <div class="limiter hidden-xs"> <label>Show</label> <select> <option selected="selected" value="">9</option> <option value="">12</option> <option value="">24</option> <option value="">36</option> </select> per page </div> my controler section is this public function look_book() { $data['active_mn']='look_book'; $config['base_url'] = base_url().'roxcontrol/look_book'; $config['per_page'] = 9; …

Member Avatar for diafol
0
348
Member Avatar for Anmol_4

Hello,I need help in updating user image in form. I have form of around 10 fields in there is options for updating images(images which have been uploaded at time of reg)** Max 5 images is allowed **now i am successful in saving data to database and at time of updating …

Member Avatar for diafol
0
174
Member Avatar for shakayu

how to create a waiting list for an appointment in php with codeigniter...any guide please

Member Avatar for diafol
0
1K
Member Avatar for mohammed_22

hi...iamb struggling with this code please help me my controller is this public function men_clothing() { $data['active_mn']='men_clothing'; $data['men']=$this->roxmodel->get_category_by_parent($p_id=8); $data['kids']=$this->roxmodel->get_category_by_parent($p_id=9); $data['galllery']=$this->roxmodel->get_galleryImages($p_id); } my model section is this public function get_galleryImages($p_id) { $this->db->where('gallery.category_id',$p_id); $query = $this->db->get('gallery')->result(); return $query; } and my view page is this <?php foreach($galllery as $row){?> <!-- single-product start …

Member Avatar for cereal
0
1K
Member Avatar for UK-1991

I have created a function for displaying the shortcode within my content same as like don in wordpress not totally like it but some the thing is that when the regex becomes true will display shortcode for the given name but what happening now is it's displaying all within the …

0
135
Member Avatar for mohammed_22

hi...iamb struggling with this code please help me my controller is this .. public function men_clothing() { $data['active_mn']='men_clothing'; $data['men']=$this->roxmodel->get_category_by_parent($p_id=8); $data['kids']=$this->roxmodel->get_category_by_parent($p_id=9); $data['galllery']=$this->roxmodel->get_galleryImages($p_id=10,11); } my model page looks like this... public function get_galleryImages($p_id) { $this->db->where('gallery.category_id',$p_id); $query = $this->db->get('gallery')->result(); return $query; } my view page looks like this... <?php foreach($galllery as $row){?> <img …

Member Avatar for gentlemedia
0
169
Member Avatar for UK-1991

I tried to make a custom php shortcode coverter for my own cms but the shortcodes are not converting in a proper way in the output its not displaying anything though as in replacement of corusel it should display Rollercoaster but right now I am getting output as This is …

Member Avatar for rubberman
0
410
Member Avatar for Muhammad_104

anybody can help me??, if the structure form like this. <input type="file" name="image_1"> <input type="file" name="image_2"> <input type="file" name="image_3"> <input type="file" name="image_4"> i want to upload multiple image with a single action to codeigniter and save it to database, my database table image coloum : image_1, image_2, image_3, image_4,

0
114
Member Avatar for wolfgang1983

Currenlty on my editor I can wrap text in any tag. But I am un able to unwarp the selected text also. My question is lets say if I select / highlight text which is wrapped in '<b>' something '</b>' and then I go and click on the bold button …

0
130
Member Avatar for wolfgang1983

I have a small problem when I clone my editable div into my iframe. Each time I click on my code view button it copys the content from my editable div and then displays it in my iframe But each time I do that it copys the same content multiple …

0
143
Member Avatar for wolfgang1983

If my slected text is wrapped in bold or iltalic or pre tag and then if i click on the revert button it should remove the tags around the selected text. But for some reason will not with my code. Question when I select/highlight some text and then click my …

Member Avatar for wolfgang1983
0
293
Member Avatar for brispea

Alo All, I am really really tired of searching for a simple file manager for PHP/Code Igniter. I am not looking for advanced one at all: 1. No MYSQL 2. NO user tracking 3. Basic File Operations (copy, move etc) 4. Multi upload (in anyway) I have tried fileman and …

Member Avatar for cereal
0
3K
Member Avatar for UK-1991

Just started learning codigniter and as far I learned from tutorials and by reading documentation I got and idea a basic about how to develop websites using codigniter as far as we see by using MVC framework there are many advantages so my questions is let suppose if we start …

Member Avatar for cereal
0
1K

The End.