Tagged Questions
0
votes
0answers
6 views
How to use CLi and html errors in error folder in Codeigniter 2.2?
I've updated Codeigniter 1.1.4 to 2.2 right now But I got many concern about my acknowledge on this new and I don't know how to use Errors folder that I found in this new version
1, I've found a few ...
1
vote
1answer
13 views
cannot select distinct values using codeigniter
Just want to select distinct values from db using codeigniter but it returns duplicate values. Could you please check what is wrong with my code below:
$this->db->distinct('country');
...
0
votes
3answers
26 views
How to call codeiginiter controller from a javascript
I'm trying to change my routing page in codeiginiter. how can i change my default controller
Someone already do this?
Thanks.
0
votes
0answers
18 views
PHP: ez Component chart does not display
I'm using ez Components to draw a simple Pie chart. To test it, I just copy-pasted code from their tutorial to display the chart, but only a blank screen is displayed.
Is it an issue related to SVG ...
0
votes
0answers
31 views
Codeigniter looking for “favicon.ico.html” on one server, not others
I have two servers, alpha and beta (as well as my local machine).
Codeigniter is set to use a page extension in the config, of ".html".
On the beta server, when loading a page, I am getting a ...
-1
votes
0answers
21 views
i got email error. i have attached error image
[1]Even I configure the email properly it is not sending. Can anyone help me to find what is wrong with my code?
$config = Array( //config for email smtp
'protocol' => 'smtp',
...
-2
votes
3answers
44 views
mysql query logic in codeigniter
I have two mysql tables memes and votes. Sample data is give below
Memes table
Votes table
vote = 1 is for upvote and vote = 0 is for downvote.
I want result something like this
To ...
0
votes
2answers
23 views
httaccess find last name after slash to redirect to an other page
I want from htaccess
url like this example http://www.clubrowcreations.co.uk/marketing-mistakes-general/thank-you
all url end with (/thank-you) redirect to main url
how do i do from htaccess
1
vote
1answer
18 views
Can I use a helper inside codeigniter route?
So I have a codeigniter helper that determines wether the signed request is from mobile or not.
and so I would like that my url routes to different controllers when there is mobile request.
for ...
0
votes
0answers
35 views
Codeigniter: getting the value of textbox on $row
I just want to ask how can you get the value of the texbox in this code:
Here is my view:
<div class="row">
<h3><input type='text' name="table1" value='<?php echo $table1; ...
0
votes
0answers
16 views
Add a drawing to the worksheet with PHPExcel
This is the first time I try to add a logo/picture to the worksheet with PHPExcel but I'm getting following error:
Uncaught exception 'PHPExcel_Exception' with message 'File ...
1
vote
1answer
41 views
Blank(red point) before print values
I'm using codeigniter, my program is fine in localhost but get mistakes online.
It's hard to describe but everything like pictures tell:
Even worse, if I write code in js like this:
var ...
0
votes
0answers
12 views
variable from php to js [duplicate]
how to pass a variable from controller to view using jquery?
my code where i'm using php in, but i know it's not good to use php in js
$('#order-to-cart').submit(function (e) {
...
0
votes
2answers
23 views
Refreshing a page with codeigniter after ajax click event
I have the following php codeigniter function code which is being called by a jquery ajax function:
$this->load->library('session');
$this->load->helper('url');
...
0
votes
0answers
15 views
How is changing a js file to php using AddHandler x-httpd-php5 .js make a web app insecure?
I want to execute some php code inside a javascript file in codeigniter using
.htaccess
<Directory /path/>
<Files file.js>
AddHandler x-httpd-php5 .js
</Files>
and in my ...
0
votes
1answer
24 views
Problems displaying array results in table using CodeIgniter
I am in need of some help displaying the correct values from an array within an html table. I am writing a scheduling engine of sorts that will allow the user to schedule classes based on preferred ...
0
votes
1answer
11 views
llegal string offset 'name' in CodeIgniter
i have this error:
A PHP Error was encountered
Severity: Warning
Message: Illegal string offset 'name'
Filename: user/account.php
Line Number: 72
In the controller "account.php" i have this:
[...]
...
0
votes
3answers
33 views
Codeigniter - Variable undefined after redirect
Having some problems while doing a project. This is what's happening: through a select I pick an user I want to edit. A table comes with all the messages posted by that user. After I click edit, with ...
1
vote
2answers
33 views
How to group 'like' with Codeigniter active records?
I'm building a search form with multiple options. The idea is to look for people with certain characteristics like career, name of last company job, years of experience, etc.
In the first part of the ...
0
votes
1answer
34 views
Ajax get request returns entire page instead of controller method
I writing a script to poll a mysql table but instead of returning what the method has,it returns the entire page html page calling ajax from
This is my ajax
var base_url = '<?php ...
0
votes
3answers
29 views
Download a PowerPoint just created in PHP
I am trying to add the PHPPowerPoint to one of my tools. I add all the file that PHPPowerPoint needs and write the download link to the right page but when I try to download it, it say to me that I ...
-1
votes
2answers
29 views
Can't copy data from one table to the other using where in [on hold]
I am writing this query to copy data from one table to the other in codeigniter. But I keep on getting an error. I suppose the error is occuring in my query since the error asks me to check the ...
0
votes
2answers
23 views
CodeIgniter: How to use and operator in WHERE clause
i use the simple query in my sql like
$query="update employee set employee_salary=employee_salary+ '".$bones.'" where employee_id='".$data['employee_id']."' and ...
-3
votes
0answers
27 views
pagination in php like facebook in codeigniter [on hold]
Pagination in php like facebook in codeigniter here is my code,I use scroll pagination with jquery scroll and call it again n again and add response in the bottom.pagination like facebook in ...
0
votes
2answers
33 views
Codeignitor Routing
I am having a problem with my routing in Codeignitor Project. Actually I have created the admin folder under the controller,view and model to access the admin section.And my routes.php file is as ...
1
vote
0answers
5 views
Codeigniter Email - `554 SMTP synchronisation error
I'm trying to send email using codeIgniter's email library.
Below is my code
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'smtp.myserver.com',
'smtp_user' ...
2
votes
1answer
56 views
foreach issue select form
I have hit a brick wall on my codeigniter project.
I can update my theme/template to database via select form in my settings. I can do that OK and the themes/templates show up OK in the select form.
...
0
votes
1answer
7 views
shell_exec function always giving null value when try to create video thumbnail using ffmpeg codeginiter
I am working in codeigniter. I had facing problem in creating thumbnail image for video files.if any can give me the code for generating a thumbnail image for the video files using codeigniter. I had ...
0
votes
0answers
10 views
PHPUnit produces a 404 HTML output
I'm working through PHPUnit, trying to get it working for myself (totally new to this).
Appears to be all installed and working.
C:\Projects\project1\tests>phpunit --version
PHPUnit 4.2.4 by ...
-1
votes
0answers
22 views
thumbnail creation of .tif file in codeigniter
I am implementing a site which has an image upload functionality.
Uploading .png, .gif, .jpeg/.jpg files work and thumbnails are generated. Uploading .tif files works fine, but no thumbnail is ...
0
votes
0answers
9 views
easyUI datagrid pagination displaying Nan of nan items
Im doing an application with code igniter and easyui datagrid, I set
pagination:true
but the next and back button aren't working and the pagination info says
Displaying 1 to NaN of NaN items
...
-3
votes
0answers
36 views
Parse error: syntax error, unexpected (T_STRING) in codeigniter library class [duplicate]
I have made this website which of course is running nicely on local host and on a free hosting http://seamyegypt.host22.com/
But now when I am trying to upload it as a sub folder under my own domain ...
0
votes
1answer
29 views
Codeigniter: Pagination doesn't get other rows
MY CONTROLLER:
$config['base_url'] = base_url('admin/profile?id=' . $profile_id);
$config['total_rows'] = 1000;//count($data['getTime']);
$config['per_page'] = 5;
$config['num_links'] = 2;
...
0
votes
0answers
7 views
using mongo db with codeigniter error
A PHP Error was encountered
Severity: 8192
Message: MongoCollection::find(): The 'MongoCursor::$timeout' static property is deprecated, please call MongoCursor->timeout() instead
Filename: ...
0
votes
2answers
36 views
Codeigniter: Getting the name of the textbox from view to get it in the model
I just want to ask on how can I get the value of a textbox name in my view to put it in my model.
Here is my view:
<div class="jumbotron">
<form action="save_new_inventorytype" ...
2
votes
1answer
56 views
Codeigniter SQL query does stop running
For my project we use an SQL 2008 connection. This works very well til now. The query stops running without giving a db or PHP error. It is very strange to me. The model function I've made is:
...
-1
votes
0answers
38 views
CodeIgniter 500 Internal Server Error for a controller class function
When I want to execute following controller class 500 internal server error occurred..
All of my models are correct, I have checked it.
public function all_interaction(){
...
-1
votes
0answers
14 views
show one post + commnet (in relation) with codeigniter [on hold]
How can I show one posting content and comment in one page from database?
So, when I click "read more", and the page bring me to show the page content+related comment.
Why doesn't this code work?
...
0
votes
1answer
27 views
Effeciant way of inserting array of data in database using codeigniter
I have following table fields in the database :
id, user_id, permission_id, value, created.
I have one result of an array which may contain more than 20 different values at a time. That whole ...
0
votes
1answer
22 views
Plain text email padding with PHP
I am building a plain text email with Codeigniter but I want to pad some headings:
At the moment they are coming out like:
Client : ABC Structures Ltd
Contact : Jeoff Black
Ticket ID : 83738
But I ...
0
votes
2answers
33 views
jQuery AJAX post not receiving data
I'm working on a CodeIgniter project, and I'm not getting any data back from an AJAX post. I have a form set up to run a search with all kinds of parameters. The PHP is most definitely getting the ...
1
vote
1answer
8 views
How to read the content of zipped file in codeigniter?
I have a form like this
<input type="file" name="zip" size="20"/>
<input type="submit" value="Upload"/>
I want to upload( POST) a zip file with this form and in my controller i want to ...
0
votes
0answers
35 views
Codeigniter: Create a dynamic ID
I just want to ask on how can I create a dynamic ID in the fields that I have loaded.
Here is my view:
<div id="content">
<form action="" method="POST">
<div ...
0
votes
1answer
20 views
Style.css in CodeIgniter PHP and Template Library
I use CodeIgniter Template and CodeIgniter PHP framework. I don't know how works metadata in this library (template). I try to add style.css to my layout. In User Guide I've found info:
...
0
votes
3answers
35 views
AJAX validate all fields again after resubmit
I have a register form which is handled by the validation helper from CodeIgniter. If the form validation returns false, it will return the errors as an JSON object.
So far the code is working just ...
0
votes
1answer
24 views
Fire events when the button is ajax loaded
I have a form to send someone a message, and I need to create a list of people to the user pick one and send him the message.
So I've created a search field that shows that list:
...
0
votes
1answer
14 views
How to display multiple ck editor in array in php passing same id?
I am doing a project in codeigniter and I came across a problem of displaying multiple ckeditor for objective answer to a question in my view.
<div class="col-md-6">
<textarea ...
-2
votes
1answer
24 views
Create a php script(model) in codeigniter which is triggered via command line to create a csv file of a database [on hold]
I need to write a php script which can be called from the command line (likely to be a model from the mvc platform) which will in turn create and download a csv file which is a representation of a ...
1
vote
1answer
50 views
Completely lost with .htaccess
i have the following folder structure on my hosting (it is a shared one)
public_html
|
|
|--- website (contains CodeIgniter application)
|--- otherapp (another CodeIgniter application)
|--- moreapp ...
0
votes
0answers
16 views
Trouble getting MAC address in php [duplicate]
I want to get the perticular MAC address using PHP. I am using framework Codeigniter through this i am able to find out the IP address only.
So is there any way to find out MAC address ?