while executing this statement, it gives following error: Type: Exception Message: DateTime::__construct(): Failed to parse time string (21/12/2020) at position 0 (2): Unexpected character What could be the reason for this error and what is the solution for it? Answer Try to replace slashes with dots or slash slashed (like 21/12/2020). Better don’t use slashes in that context.
Tag: codeigniter
What is the use of ‘flock’ in PHP [closed]
I am working on Codeigniter 3 for a month, and i want to make my own logging app, that logs the entry of the users and their actions on the website.So i digged deep into the codes related to logging …
Fetch and order selected data from multiple tables in Codeigniter
I’m struggling around the following problem: into my database there are two table, with the following same structure Both tables have data about images, one for civil aircraft registrations, the other …
Codeigniter 4 pagination with custome mysql query
In my Codeigniter 4 project i used $db->query(‘select * from myTable’) method to get data. (used this directly on controller without model) Is there way to initialize pagination with Codeigniter for this kind of stuff. I’m new to Codeigniter 4 and not worked $this->pagination->initialize($config); It says Call to undefined method CodeIgniterPagerPager::initialize() Is there way to overcome this issue without using
CI4 Inserting ID from selected Strings
I’m so tired of thinking how to solve this case. already search by internet and never solved. straight to the point this is my Controller of Product.php this is my Models Model_product.php and this is my Views create.php i want to insert new data from Controller Product function store. i’ve this problem, i cannot change string value into integer value
Undefined database variable
Blog.php code below: blog_index.php code below: I can’t see where is my mistake, it raises a errorException: “Undefined Variable:dados”. About $categorias variable, am learning how to use more than one table per controller. Codeigniter version: 4.0.4 Running through xampp Answer Controller Blog.php View blog_index.php Note :- For Reference see this:- https://codeigniter4.github.io/userguide/outgoing/views.html#adding-dynamic-data-to-the-view
when i enter Price 0 the status need show outstock in CodeIgniter
View Code when I enter Price 0 the status need show out stock in CodeIgniter i.e if I enter 0 prices in amount felid automatically in status felid its need to show outofstock if enter above 0 its need to show instock Answer For More Info Regarding keyup() :- https://api.jquery.com/keyup/
Codeigniter batch update for checkbox
I have a situation like this, I want to update some data where the input are checkboxes, I was tried this code below. Data already saved in database, but data saved in another row, For example : I …
FixedColumns DataTables misaligned and duplicate each row in one columns
I’m having problem with FixedColumns DataTables. As you can see from the picture, the columns duplicate all the rows and misaligned it. I’m not sure what is wrong, but I’m already using the reference from DataTables websites and still not working, can you help me? Answer After awhile, i solved the problem. Because i’m using DataTables bs4, i need to
Adding Facebook Library in Codeigniter 4
I am Using CI 4 for my project and I need Facebook Login to get user data which I have done in fb-JS-sdk and after that I save data to DB and start session for that user so It looks like it’s directly loged in by facebook login, but that’s not point here, Now After Login with Facebook user will