How to COUNT DISTINCT values with a CodeIgniter SELECT query?
I'm trying to retrieve a count of all unique values in a field. Example SQL: [Code Block] How can I do this kind of quer...
Latest news, tutorials, and updates from the PHP community
6985 articles available
I'm trying to retrieve a count of all unique values in a field. Example SQL: [Code Block] How can I do this kind of quer...
I am looking for a way to communicate with RS232 serial COM port on windows. I have found 2 solutions on the net, one wh...
I've seen a couple of questions over the last few days that have used `mysqli` but where the answers appear to have not ...
I am trying the following code to get results from query and display it in the `tes.php` page. db.inc.php [Code Block] t...
I have to build a large form for users to fill out in order to apply for graduate study at the college I work for. There...
I am about to develop a very large web based operations, inventory, sales management system. I had intended on C#/MSSQL/...
I often use `($var & 1)` in my code, which returns true if `$var` is an odd number and false if it's an even number. But...
I need a set of mail headers to attach to my `mail()` function in PHP. I send emails with HTML in them, and sometimes se...
I have a bunch of client point of sale (POS) systems that periodically send new sales data to one centralized database, ...
I know PHP is usually used for web development, where there is no standard input, but PHP claims to be usable as a gener...
Okay, here's one for the pro's: For a couple of years now, I've been working on my own PHP ORM/ActiveRecord implementati...
I have two arrays in PHP as follows: People: [Code Block] Wanted Criminals: [Code Block] How do I check if any of the Pe...
Showing 6937 to 6948 of 6985 articles