Multiply two columns within a CodeIgniter select_sum() call
I'm trying to work out the total value of all the products in my inventory. Each product in the table has a price and qu...
Latest news, tutorials, and updates from the PHP community
8494 articles available
I'm trying to work out the total value of all the products in my inventory. Each product in the table has a price and qu...
I'm using CodeIgniter and have a case where two tables (projects and tasks) need to be updated with a value right after ...
I want to know how many milliseconds a PHP for loop takes to execute. I know the structure of a generic algorithm: [Code...
Is there a standard way of passing an array through a query string? To be clear, I have a query string with multiple val...
I need to assign some tags to my posts (for external use), but I don't want them showing anywhere that tags are listed. ...
[Code Block] Is possible reduce the number of empty to one, like `empty($form) || ($form1)`? How can I reduce the number...
Is there a way to retrieve what the "where" clauses I have added in my query? I use a foreach statement to add the colum...
I created a form to search a database (first name, last name). The results should populate another form, so to update th...
How to have round brackets symbol in Codeigniter's active record SQL queries? e.g. how to accomplish [Code Block]
I have a string that has different values on each line: [Code Block] I want to explode the whole string in to an array c...
I have a model with two queries: [Code Block] Then I call the first function on my controller: [Code Block] The problem ...
I want to select multiple columns in a table using codeIgniter active records. Selecting using [Code Block] but selectin...
Showing 7933 to 7944 of 8494 articles