Are you looking for help with the PHP or help with the cron job?
Here's a rough sketch of how the PHP would look:
PHP Code:
mysql_connect( ); // put in your connect settings
mysql_select_db(); // select your database
mysql_query( 'SELECT users from table where ordered = 0' ) // replace with correct sql query
while( $row = mysql_fetch_array() )
{
$message = 'Please order this'; // replace this with what you want to say
$subject = 'Order now!'; // same
mail( $row['email_address'], $subject, $message, $headers ) // see http://us2.php.net/manual/en/function.mail.php for details on $headers and such
}
}
Bookmarks