Sometimes I want to do something so simple in PHP and the code escapes me and I can't figure it out. One of the purposes of my website is to house code snippets that I can refer back to.
Here is the code to get the unique number of entries in a table.
PHP:
Found via codegrrl.com.