Codeigniter: How to handle direct link to controller/function/param?
I have a simple controller function which deletes a DB entry (it uses a model function to do so). I have a link to this ...
Latest news, tutorials, and updates from the PHP community
6985 articles available
I have a simple controller function which deletes a DB entry (it uses a model function to do so). I have a link to this ...
I want to create a class which uses PDO to interact with MySQL. Can I create a new MySQL table using PDO?
I'm new to MVC (I'm using CodeIgniter) and was wondering where I should put a "cut_description" function. My model retri...
When I try to call one of my model methods, I am getting this error: Fatal error: Call to undefined method CI_DB_mysql_d...
I need to retrieve data from two tables. the first is a list of events, the second is a list of venues. I have a fields ...
I was writing some commented PHP classes and I stumbled upon a problem. My name (for the @author tag) ends up with a `ș`...
I'm using html2fpdf for creating PDF documents. Now once I have created that, I want to make sure that the PDF file is p...
How can I iterate the rows returned from my model method? [Code Block]
I am trying to retrieve a value from an Array. Here is the code: [Code Block] I tried to use: `$opt["subjectid"]` but I ...
Scenario: the size of various files are stored in a database as bytes. What's the best way to format this size info to k...
When I use fputcsv to write out a line to an open file handle, PHP will add an enclosing character to any column that it...
I'm using CodeIgniter's query builder to query the MySQL database. I need to select the rows in a table where a field is...
Showing 6781 to 6792 of 6985 articles