Files
Testing/html5-chat/classes/News.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

18 lines
482 B
PHP

<?php
@require_once('DB.php');
class News {
private static $table = 'chat_news';
public static function getAll($webmasterid, $debug=false) {
$news = DB::select(self::$table, array('id', 'news'), "WHERE webmasterid=$webmasterid", $debug);
return $news;
}
public static function getAllActive($webmasterid) {
$news = DB::select(self::$table, array('id', 'news'), "WHERE webmasterid=$webmasterid and active=1", false);
return $news;
}
}