This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
inside/inside/EventComments.php
T
2009-10-13 15:43:04 +02:00

29 lines
514 B
PHP

<?php
class EventComments {
var $conn;
function EventComments(){
$this->__construct();
}
function __construct(){
$this->conn = db_connect();
}
public function getList($eventId){
$sql = "SELECT id
FROM din_eventcomment
WHERE event_id = $eventId
ORDER BY date ASC";
$result =& $this->conn->query($sql);
if (DB::isError($result) != true){
return $result;
}else {
error("Eventcomments: " . $result->toString());
}
}
}
?>