Use PHP to Backup your MySQL Database

Use PHP to Backup your MySQL Database

If you don’t backup your databases regularly, shame on you. You should!
The code below will allow you to generate a backup as often as you’d like. It only makes sense to run this via a CRON job. This is pretty easy to do and you can set the frequency as you wish.
The [...]

Return Random Record via MySQL

Return Random Record via MySQL

There are many practical and frequently used methods requiring a random record to be called. For instance, when you see “featured profiles” or random customer comments on a website, they are most likely using a function to call a random record.
In addition, this function can allow you to display data in a random order.
Here’s [...]