top of page

Phprad Classic <360p>

$sql = "SELECT * FROM posts WHERE views > :min_views"; return $this->ExecuteSQL($sql, array('min_views' => 100));

Create a cron script:

$sql = "SELECT p.*, c.name as category_name FROM posts p LEFT JOIN categories c ON p.category_id = c.id WHERE p.status = 'published'"; phprad classic

// config.php ini_set('display_errors', 1); error_reporting(E_ALL); Solution: Check permissions and paths $sql = "SELECT * FROM posts WHERE views

* Add custom HTML here * <div class="alert alert-info"> Custom message for all posts </div> // config.php ini_set('display_errors'

$to = "admin@example.com"; $subject = "New Post Added: " . $this->title; $message = "A new post has been added by " . $_SESSION['username']; mail($to, $subject, $message);

bottom of page