44 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for Ddd_1

Hello Guys, I'm a beginner in web developing and currently building a website for my assignment.In the website,i have to create a form that allow user to upload multiple images in multiple field. My problem is when user upload the first images,they can't proceed to upload the second images and …

0
172
Member Avatar for ivanichi

hello, i have table, like this ![id_j.jpg](https://static.daniweb.com/attachments/2/825eb7e4f2658c788c5332dbbe8ea3d9.jpg) i want to create crud for it, this is the new section displaying and retrieving data, with this condition: nama_barang show with autocomplete, ![autocomplete.jpg](https://static.daniweb.com/attachments/2/a7714153a09b5ac0adc585f69d4adc71.jpg) autocomplete works, and displays the data once selected but does not automatically create a number of data and they …

0
104
Member Avatar for Desope

Hello. I am having a problem here. So I have this slider which display the pictures with status "1" which means displayed. Here comes the problem, when there's no pictures with the status AKA "0" (not-displayed), the default image doesn't show up. Here's the script. <div class="carousel-inner"> <?php $no=1; $default=$this->db->get_where("penyaluran", …

0
196
Member Avatar for shivubs

hiii i need your help, i am web developer (fresher). i want display images from database/folder using ajax in codeignater. i try ur source code not working.

0
431
Member Avatar for Syed_18

Hi I have problem that cannot show form validation errors in view . I am using ajax to post data to controller. Here is my Controller's Validation part private function _validate() { $this->form_validation->set_rules('Name', 'Name', 'required|alpha'); $this->form_validation->set_rules('CellNo', 'CellNo', 'required|numeric'); $this->form_validation->set_rules('Address', 'Address', 'required'); $this->form_validation->set_rules('Rate', 'Rate', 'required|numeric'); $this->form_validation->set_rules('Advance', 'Advance', 'required|numeric'); $this->form_validation->set_rules('BottlesQty', 'BottlesQty', 'required|numeric'); …

0
353
Member Avatar for Syed_18

Hi This question or similar were 4 years ago has already been asked but in my situation did not help. I have codeigniter project. in my employee database I have TINYINT field status. if 1 employee is active otherwise inactive. my form is in bootstrap modal. here is switch button …

0
305
Member Avatar for Makii_1

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 …

0
241
Member Avatar for shahir_1

if click second link the url pass value but then i click next the url value will empty. any one healp me ...! this is my controllere public function search() { $this->load->library('pagination'); $prdictive= $this->input->post('printable_name'); $category=$this->input->post('category'); $area=$this->input->post('area'); $this->load->library("pagination"); $config = array(); $config["base_url"] = base_url() . "Main_control/search/".$area.'/'.$category; $area2 = $this->uri->segment(3); $category2 = …

0
284
Member Avatar for Junie30

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

0
220
Member Avatar for davy_yg

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 …

0
157
Member Avatar for davy_yg

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?

0
136
Member Avatar for mark_59

/* 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: …

0
176
Member Avatar for ashalatha

Controller: function addblogs() { $this->load->library('form_validation'); $this->form_validation->set_error_delimiters('<br /><span class="error"> ','</span>'); $this->form_validation->set_rules('blog_title','Blog Title'); $this->form_validation->set_rules('description','Blog Description'); $this->form_validation->set_rules('category_id','Category Name','required'); $this->form_validation->set_rules('position','Position'); if($this->form_validation->run()== FALSE) { $data['categorylist']=$this->blogs_model->categories_dropdown(); $data['mainpage']='blogs'; $data['mode']='add'; $this->load->view('templates/template',$data); } else { $this -> blogs_model -> insertblogs(); $this->flash->success('<h2>blogs Added Successfully!</h2>'); redirect('blogs'); } } Model: function categories_dropdown() { $this->table = 'categories'; $this->where('status',1); $categorylist=$this->dropdown('category_id','category_name'); return $categorylist; } function …

0
224
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 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 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
113
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
129
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 rakesh.r1024

I have enabled the Facebook re-authentication for my site (done in codeigniter) when the user is visiting a specific page. Here is my code : $(window).load(function() { $("a.facebook_reauth_login").on("click", function(e) { var t = $(this); e.preventDefault(); FB.usingButton = !0; var n = base_url; FB.login(function(e) { if (e.authResponse) { FB.api("/me", function(e) { …

0
107
Member Avatar for anmol.raghuvanshi1

hello, I want to store image path in database along with image name like /uploads/profilepic/name.jpg. what happening is only path is beinged saved not image name like field in my table prfile_picture has updated /uploads/profilepic/ but i want image name also after trailing slash so that i can retrieve that …

0
125
Member Avatar for riwakawd

I have a helper function in codeigniter php where I can use helper like so load_controller('column_left', 'index'); for example "column_left" is the file and class name. How ever that works fine but I would like to be able to type a folder name in load_controller('some_folder/some_class', 'index'); and it would detect …

0
113
Member Avatar for praba_web
-1
159
Member Avatar for Israel_2

So I have this simple query that if I run it on sql server management studio it gives me results. Select name, count(*) As thecount from Restaurants group by name I am using codeigniter and a wrapper library for datatables called [ignited datatable](https://github.com/IgnitedDatatables/Ignited-Datatables/wiki/Function-Reference) . I am using it because its …

0
260
Member Avatar for SeanKann

I have a page that has 2 forms on it. It's an inventory system. One form is to add items to your inventory. The second form is to update your qty of each item. The first one that adds items to the inventory works fine. But the second one will …

0
249
Member Avatar for game4tress

I'm creating a chat system and the problem is that when testing with two users, the secound user (entering the system) can see the first user (already loged in), but the first user will never see the next user(s) entering the system. I know that the problem comes from the …

0
200
Member Avatar for mohan@nano

A Database Error Occurred Unable to connect to your database server using the provided settings. the above error am getting when i load the localhost and my database.php and db_driver codings are given below $db['default']['hostname'] = "etc.com"; $db['default']['username'] = "etc"; $db['default']['password'] = "etc@etc"; $db['default']['database'] = "visiting_link"; $db['default']['dbdriver'] = "mysql"; $db['default']['dbprefix'] …

0
155
Member Avatar for cgull

Hello, I am looking at a git course and codeigniter best practice in tutsplus. I am totally lost with all the installations I did since yesterday. I installed git, cygwin and composer. Now in the cygwin terminal I write: <code>composer -V</code> and I get my composer version. Then I go …

0
102
Member Avatar for mwenyenia07

i want to load client details as follows: 1. you enter his/her Identity number in a textbox and press enter. this will call a controller that will do the rest of the stuff. how can you do it using jquery and codeIgniter. show by example.

-2
93
Member Avatar for Whilliam

Hello guys, sorry if this is a noobish question but I'm really new to framework. My question is how do you pass parameters with codeigniter?

0
80
Member Avatar for veledrom

Hi, I am using this function to download an image that I uploaded before by using Codeigniter. Function successfully downloads it with same name but when I try to open it, I get an error which says "Cannot be opened... file format... is not supported..." Please help. Thanks CONTROLLER: [CODE]public …

0
75

The End.