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 [...]
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 [...]
This tutorial demonstrates how to execute an external PHP function by clicking a simple link within HTML. The method uses AJAX so that the page doesn’t refresh and doesn’t require a form submission.
1) Paste the following code into a .js file. For demonstration purposes, we have named it “ajax_click.js”.
/*
* ajax_click.js
* chriscook.me
*/
function loadurl(dest) {
try {
// [...]