DevChunks

MySQL Random Row

To get a random row from your table, you can use the following trick: {code type=php} SELECT * FROM myTable ORDER BY RAND() LIMIT 1

Read More »

The PHP “heredoc” Syntax

An excellent alternative method to assigning string variables is to use the heredoc syntax. If you are assigning long strings of text with characters that

Read More »