[Solved] My Jquery isn’t “throwing” anything

Introduction If you are having trouble getting your jQuery code to work, you are not alone. Many developers have experienced the same issue. Fortunately, there are a few steps you can take to troubleshoot and resolve the issue. In this article, we will discuss the common causes of jQuery not “throwing” anything and how to … Read more

[Solved] Security in codeigniter

Codeigniter and other popular frameworks like Zend, cake, Yii etc. they all provide methods and structure which to a certain extent force the developer to write code that is resistant to common exploits such as cross site scripting XSS, and SQL injection and other hacks. but everything really depends on the developer. frameworks will only … Read more

[Solved] Images not loading from folder [closed]

you need to use javascript and either preload all of the images, or use AJAX and call the image to be loaded. This is because all php is executed on the server (server side script) and needs refreshing before it is sent to the browser. use a client side script (javascript) to execute it in … Read more

[Solved] Why ‘return’ is used in PHP , Codeigniter to retrive or insert data to database?

From the php manual: If called from within a function, the return statement immediately ends execution of the current function, and returns its argument as the value of the function call http://php.net/manual/en/function.return.php That means the “return” statement will return the data to the parent method who called it. The behavior of DB operations will depend … Read more

[Solved] Can’t Insert to database CodeIgniter

Change your controller function with below code I think You are calling wrong model for inserting rating public function rateform($username,$id,$name) { $this->load->Model(‘Keluhan’); // load your model $rating = $this->input->post(‘rating’); $name2 = urldecode($name); $data = array ( ‘id’ => $this->input->post(‘id’), ‘username’ => $this->input->post(‘username’), ‘rating’ => $this->input->post(‘rating’) ); $result = $this->Keluhan->InsertRating($data); // change your model name where … Read more

[Solved] want to convert a string into array [duplicate]

try this; $answer = “8|$0-$100,000<>9|$3-$100,000<>10|$2-$100,000”; $answer = preg_replace(“^[0-9]*\|^”, “”, $answer); // remove the number and | $answer = str_replace(“$”, “”, $answer); // remove $ sign $answer = explode(“<>”, $answer); 1 solved want to convert a string into array [duplicate]

[Solved] What Is Active db in CodeIgniter? [closed]

I think it’s Active Record not Active DB. Active Record is a One kind of design pattern used for retrieve, insert, and update your database with minimal scripting. You will find more about this in the bellow link https://www.codeigniter.com/userguide2/database/active_record.html 1 solved What Is Active db in CodeIgniter? [closed]

[Solved] input data codeigniter always 0 on database

You don’t have a valid submit button in your html code. Remove your link and use an input type “submit” or a button Replace : <div class=”form-group”> <a href=”https://stackoverflow.com/questions/29392261/<?= base_url() ?>ipmpab/addIpMpabDb/” class=”btn btn-success”> <span class=”glyphicon glyphicon-plus”></span> add </a> </div> With : <div class=”form-group”> <button type=”submit” class=”btn btn-success”> <span class=”glyphicon glyphicon-plus”></span>add </button> </div> … For exemple … Read more

[Solved] How to join 2 table and return value

You can use this query SELECT t1.* FROM first_tbl AS t1 LEFT JOIN second_tbl AS t2 ON t1.order_number = t2.order_number WHERE t2.ID IS NULl And it will return only the 333333 record See this DB fiddle for example This is how it would look in CI: $this->db->select(“t1.*”) $this->db->from(“first_tbl AS t1”); $this->db->join(“second_tbl AS t2 “, “t1.order_number … Read more

[Solved] How to Delete Specific Multi Records in Codeigniter [closed]

4,6,8,11,12 records Deleted public function delete_data($id){ $this->db->where_in(‘campus_id’, $id); $this->db->delete(‘sections’); } 3,5,6,7 records not Deleted public function delete_data($id){ $this->db->where_not_in(‘campus_id’, $id); $this->db->delete(‘sections’); } Wow I Got It.. solved How to Delete Specific Multi Records in Codeigniter [closed]