Initial import
This commit is contained in:
commit
057959cb8f
1198 files changed
+89467
No files matched your search
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user