Skip to content
Advertisement

Tag: codeigniter-3

how to filter data based on fromdate and todate?

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

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

Advertisement