CodeIgniter model error when database is not loaded: "Call to a member function get() on a non-object" [duplicate]
I created a new model class as `my_model.php` inside `/models` folder, and a function inside it to load all elements: [C...
Latest news, tutorials, and updates from the PHP community
8579 articles available
I created a new model class as `my_model.php` inside `/models` folder, and a function inside it to load all elements: [C...
I'm trying to convert PDF to IMG (JPG) with help PHP. I'm using imagick extension. this is my code [Code Block] my sourc...
my database table structure is like following: [Code Block] Now what I want to do is select the date field from the tabl...
To create an empty JSON object I do usually use: [Code Block] casting null to an object works, but is there any other pr...
I am experiencing a rather intriguing problem, and I have no idea why. Utilizing the code below, if a session id is set,...
what I did is, I used a static field in my Database class, to store mysqli object. here is the code : [Code Block] later...
I'm having an function which gets data from my database, and joins different tables. This is the method: [Code Block] In...
I want to convert these types of values, `'3'`, `'2.34'`, `'0.234343'`, etc. to a number. In JavaScript we can use `Numb...
I have a text file with many different URL typed in the text. For example: [Code Block] I need them to be extracted from...
I have a few questions about cURL: Do I need to use `session_start()` with cURL? If not, how do I get the `session_id()`...
I'm using CodeIgniter's query builder methods and I'm retrieving an error using the following code: [Code Block] It prod...
I'm creating a class and I have a function with which I want to insert some data into an table from some inputs. It work...
Showing 7777 to 7788 of 8579 articles