i’m new to Codeigniter, but learning from web, actually i got stuck with a unknown proble. im inserting data into the database throw the model, and fetching back the data into form. but when i’m …
Tag: codeigniter
codeigniter add N in sql Query INSERT unicode text
I am working with codeigniter / SQL. Where I want to insert unicode string with ‘N’ Prefix the insert. How can I achieve it in regular insert. Regular Code: INSERT Trying to Achieve: Is there any way to achive the above insert instead of manually writing the Query.? Answer This is the simplest way to do it. Or, if the
Pushing a sub array into the same array
I am trying to put content of one array into the same array. Here I have an array $mclass with values such as You can see I have room_id index with 1,3,5 value. Now, I want to explode the room_id and get duplicate of same array index data with change of room_id and push into the array. and finally delete
How to route the URI with parameters to a method in codeigniter?
I don’t know much about the routing concept in codeigniter, I want to pass many parameters to a single method as explained in this http://www.codeigniter.com/userguide2/general/controllers.html …
Codeigniter 3 – Access Session from Outside Codeigniter Installation
I can’t seem to get session data passed from my codeigniter application back to a script in my includes folder. From what I’ve read on other answers, I need to set my session_id() to be able to rejoin a session with session_start(). Theoretically the code below should work, at least according to other answers, because the new CI session library
calling controller function from view and retrieving rows from db using AJAX in codeigniter
I am trying to retrieve rows from database by making an AJAX call to the controller function. I have no error messages and the code is executing properly upto $(“#msgbox”).html(“Type the name of …
Codeigniter doesn’t let me update entry, because some fields must be unique
So what I’m trying to do: Pull User data from database, including email address, username etc. Edit it Save it But I want to keep username and email unique. And for this I’m setting validation rules like this: And as you can see I have is_unique[users.username] and is_unique[users.email] rules. But it doesn’t let me update my entry using this rules.
codeigniter captcha helper is not increasing text font size
This seems a duplace question some how, but its not. Am asking the following : Does the codeingiter helper does have a font size increasing feature ? even if i passed the following array setting …
Getting error mysqli::real_connect(): (HY000/2002): No such file or directory when I try to access my project on live server
I had uploaded my website to server and then I tried to access, but the code igniter returns me that error that I don’t find any answer. Why is this happening? My config database is set like: $db[‘…
Error Session File Driver in CodeIgniter 3
I am a new developer of CodeInger, last few month I had developed my project with PHP framework which is called CodeIgniter. So my problem was that when I tried to upgrade my project from version 2 to …