This is my construct query, i need to filter data based on fromdate and todate,and also based on adminid, whats wrong am i doing here,is there any other way? Answer You’re not concatenating. You forgot the ‘.’. There is also no need to append the ‘NULL’. If you don’t want to do anything with executive_id, then don’t add anything to
Tag: codeigniter-3
CodeIgniter – How to combine where() and where_not_in() in one query?
In one of my CodeIgniter based application, I need to combine both where() and where_not_in() in one single query. The query I wrote is: $where = array( ‘proj.project_code’ => $project_code ); …
Ajax POST Success But No Data Are Send
I have problem to upload multi file using ajax, in this case im using codeingiter, when I call $_POST array return null on upload function, this is my my form I’m using this snippets Form https://jsfiddle.net/alexjamesbrown/2nzL9f7g/ Server Test Return My question is how to fix this ? Thanks in advance Answer Try with $_FILES Your input file must have name
Create custom function for upload and insert data
Is there any chance that I can create a custom function for upload? I have 2 function which are insert_content() and insert_officials. In that function there is a code for uploading image. How will I do that since they have the same code of config. Answer Just make a function and put it in a model or something: Usage:
Save thumbnail image to another folder [CodeIgniter]
I’m trying to create a thumbnail for the image that will be uploaded to my server. Refer to https://www.codeigniter.com/userguide3/libraries/image_lib.html#processing-an-image . After the creation, I want to save the thumbnail to another folder since both the original image and the thumbnail will be saved in the same location. So, I try using move_uploaded_file() function but it unable to move the file.
Save generated QR code image into path
I am generating QR code dynamically from a database, I need to store them in a specified path. when am generating the QR-code and saving individually, but now am generating them in bulk I need to store them in my preferred path. How can I achieve this? This is my Function Answer Hope this wll help you : Your print_qr1
error in file uploading codeIgniter
Below is the code for my controller…. After this call this function where You want to make this upload…in controller but file is not uploaded…….why? Answer Hope this will help you : Your do_upload method should be like this : UPDATE : set upload_max_filesize in your php ini greater than 2MB, if it is wamp just follow : click on
Color,Price, and Size Filter In PHP Codeigniter And Ajax
Section 1 I have an issue in ” Displaying 1 – 5 of 10 records “. I have a piece of code which works only on first page, when i click on second page then it show the same result ” Displaying 1 – 5 of 10 records ” Instead of ” Displaying 10 of 10 records “. Code In
In Codeigniter what is the purpose of hook ? Why we have to create?
i am new to codeigniter. In Every interview all asked about hooks. i am not getting that what is hook why i have to use it ? what the benefit of it. Answer This is example link for use it hooks in codeigniter https://qasimbadami.wordpress.com/2012/05/18/codeigniter-hooks-tutorial/ Note : suppose you have big project and almost 100 controller , if every time to
Unable to send email using SMTP gmail config in codeigniter 3
Below are my code and I refer all examples in stack overflow and codeigniter user guide. still I unable to solve this public function send() { $config[‘protocol’] = ‘smtp’; $config[‘…