Web Hosing Solutions
where('published', '!=', '0') ->where('published', '!=', '') ->orderBy('date', 'DESC') ->limit(3) ->get(); foreach ($data as $announcement) { $id = $announcement->id; $date = $announcement->date; $title = $announcement->title; $body = $announcement->announcement; $date = fromMySQLDate($date); echo "{$title}
" . "Posted on {$date}

" . $body . "

"; }