0
votes
0answers
2 views
Protected database table and fields in PHP Object
I have a feeling this is an elementary question, but could not find anything on it. I'm working on someone else's PHP CodeIgniter code, and when I run die(print_r($object));, I receive the following ...
0
votes
1answer
19 views
mysql insert into DB not working
I cannot seem to get the new_id and id to update/insert into the DB but it is showing in the console log correctly so I know its posting that far correctly
AJAX:
$('body').on("click", ...
0
votes
0answers
6 views
Code Igniter Models
Getting an error HTTP 500 when calling
$this->load->model('cart/products', 'Products');
My folder structure is Applications/Models/cart/products.php
Not sure if possible to create ...
0
votes
1answer
33 views
Protecting from SQL injection
I know the below code is open to injection but I am unsure what the best way to resolve it. Would it be best to repeat the $new_id line or is there something more that should be done?
Controller:
...
0
votes
1answer
29 views
How to mesh codeigniter with ajax
I am trying to implement a ajax plus one button with my site in code igniter. I am very new with Ajax and codeigniter so I'm needing some guidance.
Here is the portion of my controller where I'm ...
1
vote
1answer
28 views
How to successfully send an email in a contact form through CodeIgniter?
I have set up my controller and my contact form all set up. But when I click "Submit" on my contact page, I receive no errors but I receive no email. Can anyone help me figure out why I am not ...
0
votes
2answers
23 views
Pagination with Codeigniter not working
I have a problem with my codeigniter app. I have setup a controller method like so:
public function program_search()
{
$config['base_url'] = base_url().'/site/program_search/';
...
0
votes
1answer
20 views
unwanted pagination in datatables after inserting a new record
.
I am new to jquery datatables and facing problems with pagination. when I insert a new tuple then an extra page is being created in the table.
for example : suppose I have 1 record ...
0
votes
1answer
25 views
inserting image in mysql db using codeigniter
I am trying to store image in mysql using codeigniter.
Data is getting successfully inserted but i am not able to view that image.
enter code here
$this->gallery_path = realpath(APPPATH . ...
0
votes
1answer
22 views
CodeIgniter object not found only the index funtion works
I am new to CodeIgniter, everything was going fine and well up until I found out that I can only make a call to the index() function.
I have setup the config.php, autoload.php and routes.php as ...
0
votes
0answers
4 views
Library FeedWritter for CodeIgniter
I need to make Atom feeds.I want to use FeedWritter library with CodeIgniter.The problem is that i cannot include the library in Code Igniter.If someone knows how I can make Atom feeds with PHP in ...
0
votes
4answers
58 views
current_url() vs. “ ” in an href
I want to have links that allow for page refreshing and setting href="" seems reasonable.
I'm using Codeigniter (PHP framework) which has a function current_url() so I could also write ...
0
votes
1answer
17 views
array_map issue on production server
model.php
function _test() {
return $this->db->query("SELECT 'Hello world!' AS ColumnName")->result();
}
controller.php
function test() {
$response = $this->model->_test();
...
0
votes
1answer
22 views
Error 500 after submitting the form in codeigniter
I'm a newbie in CodeIgniter, so this question might sound too dumb.
Using these MVC, i get Error 500. Any ideas? Thanks in advance
0
votes
0answers
26 views
Codeigniter on CentOS does not run but on WAMP it's working fine [closed]
I am using CentOS linux operation system
Here every thing is fine
apache
php
mysql
All my other application are running fine but only the codeigniter is not working my database and every ...