codeigniter Questions
2
Solved
I am using active records to access the database. However, an additional feature requires me to use standard SQL query. Is it possible to use both active records and standard SQL query in the same ...
Least asked 4/6, 2011 at 23:0
3
Solved
I'm using CodeIgniter's active record class and the query looks something like this:
$query = $this->db
->get_where('Table', array('field' => $value));
What's the fastest way to get a fi...
Schulze asked 6/12, 2010 at 23:19
3
Solved
I'm trying to get this query to work in CodeIgniter but it's spitting out an error:
A Database Error Occurred Error
Number: 1096
No tables used
SELECT *
If I put the query directly into...
Froh asked 29/1, 2011 at 19:47
4
Solved
It is possible to generate the following query using CI's query builder methods?
SELECT name
FROM table1 t1
JOIN
(SELECT ID FROM table2 ORDER BY id LIMIT 5) t2
ON t2.id=t1.t2_id
WHERE t1.id&...
Priestley asked 10/1, 2013 at 5:29
4
Solved
I've written a simple query for searching a keyword in the database.
$keyword = "keyword sample";
$keyword = str_replace(" ", "%", $keyword);
$this->db->selec...
Afrit asked 20/3, 2014 at 20:21
6
I am using codeigniter that has mysqli as db driver, am trying to call a simple stored procedure from my model but get an error. What am i doing wrong
Error Number: 1064
You have an error in your...
Grigg asked 18/8, 2015 at 8:24
3
Solved
I have this migration:
public function up(){
$this->dbforge->add_field([
'id'=>['type'=>'int', 'unique'=>true, 'unsigned'=>true,'auto_increment'=>true],
'email'=>['type'...
Barina asked 14/2, 2018 at 13:35
7
Solved
I tried checking all the names. It is working fine in php 5.3 but not working in php 5.5
An uncaught Exception was encountered
Type: RuntimeException
Message: C:\xampp\htdocs\project\appli...
Avalos asked 4/1, 2016 at 12:58
9
Solved
I created a login page with codeigniter,but i get the php message.
Message: ini_set(): A session is active. You cannot change the session module's ini settings at this time
how to fix this?
vie...
Deron asked 28/9, 2015 at 2:23
8
Solved
How do I return response from the controller back to the Jquery Javascript?
Javascript
$('.signinform').submit(function() {
$(this).ajaxSubmit({
type : "POST",
url: 'index.php/user/signin', ...
Agrobiology asked 16/9, 2013 at 6:18
9
Solved
Hi all I have a site developed in codeigniter and I wanto to store into a file called common.php some javascript/PHP function that I use in many pages.
I have tried in this mode:
require(base_url(...
Sekyere asked 8/5, 2013 at 17:0
7
Just realised WHY my site is now showing all datetime variables as -1 hr... I'm using Codeigniter for the first time! (Never had this problem before)
So, I have included the following code in my m...
Cubit asked 2/7, 2013 at 13:27
5
Solved
I am new user to using code igniter in my project, I am facing one problem while uploading multiple files but the last one only insert to all image three images field.
my controller is:
function ...
Aikido asked 24/11, 2016 at 5:31
4
Solved
I am developing website using php/codeigniter.
I have downloaded a list of temporary email domains from github (https://gist.github.com/adamloving/4401361)
I integrated this to my website to filt...
Boob asked 7/11, 2018 at 8:23
4
Solved
So I am trying to use rename function in php.
On the first try, if the destination folder is empty or does not contain any directories with the same name as the source folder the rename function w...
Finochio asked 6/5, 2015 at 12:53
11
Solved
Error:
Access to Font at 'http://www.example.com//assets/global/plugins/font-awesome/fonts/fontawesome-webfont.woff2?v=4.4.0' from origin 'http://example.com' has been blocked by CORS policy: No 'A...
Compensate asked 12/1, 2017 at 10:16
6
I have a query like this, I want to use this query in Codeigniter.
SELECT sum(price)
FROM (SELECT price
FROM items
ORDER BY price DESC
LIMIT 3
) AS subquery;
I have did
$this->db->select...
Languish asked 2/4, 2015 at 9:44
14
Solved
Point #1
If I type:
www.myurl.com/somepage
http://www.myurl.com/somepage
http://myurl.com/somepage
https://myurl.com/somepage
have it redirect to
https://www.myurl.com/somepage
Point #2
When...
Phonate asked 4/1, 2016 at 7:12
11
Solved
How to do UNION query with PHP CodeIgniter framework's active record query format?
Quacksalver asked 11/1, 2010 at 8:37
4
Solved
I've just set up a new webiste http://www.reviewongadgets.com
But there is a problem with URL rendering
When I put an URL as below it's not working and gives page not found error
http://www.revie...
Joyjoya asked 11/12, 2011 at 15:23
6
Solved
When I am trying to load css or javascript file then it returns 404 error.
I've tried to use helpers such as HTML helper's link_tag, URL helper's base_url methods, it will make a route to the file...
Ophthalmic asked 15/10, 2019 at 9:47
3
Solved
I'm reviewing someone's code and I can see that they're using codeigniter. But I'm trying to figure out which version they've used. I've been rooting around in the directory structure to find some ...
Dactylic asked 1/4, 2013 at 18:6
13
Solved
I use this function to add cookie and it adds perfectly as I can see in browser options.
function login($username,$password){
$cookieUsername = array(
'name' => 'user',
'value' => md5($u...
Christly asked 16/3, 2012 at 20:10
8
I Can't figure out how to install php-gd for PHP7.2. Is there any way to install/enable GD extension in xampp windows? I checked the php.ini file for php_gd2.dll but I can't find that line. It seem...
Buckeye asked 2/4, 2019 at 11:59
10
I am developing an API using Codeigniter and MongoDB.
In some parts of the database I have saved the ID of an image in ObjectID format
instead of a string. Now I got an ID in string format and I ne...
Innermost asked 19/10, 2011 at 17:49
1 Next >
© 2022 - 2024 — McMap. All rights reserved.