Initial import

This commit is contained in:
Thomas Misund committed 2009-10-13 15:43:04 +02:00
commit 057959cb8f
1198 files changed
+89467

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
<?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());
}
}
}
?>