Adding changes from production server. Pls, stop making changes live. Hrmpf.
This commit is contained in:
1 parent
243008cff5
commit
ca1fcc8173
104 files changed
+9231
-4853
No files matched your search
+34
-34
@@ -1,35 +1,35 @@
|
||||
<?php
|
||||
|
||||
define("ARTIST", "1");
|
||||
define("SHOW", "2");
|
||||
|
||||
class Categories {
|
||||
var $categories;
|
||||
var $conn;
|
||||
|
||||
function Categories(){
|
||||
Categories::__construct();
|
||||
}
|
||||
|
||||
function __construct(){
|
||||
$conn =& DB::connect(getDSN());
|
||||
if (DB::isError($conn)){
|
||||
error("Categories: " . $conn->toString());
|
||||
exit();
|
||||
}else {
|
||||
$this->conn = $conn;
|
||||
}
|
||||
|
||||
$sql = "SELECT id, title FROM tf_article_category";
|
||||
$result = $this->conn->query($sql);
|
||||
if (DB::isError($result) != true){
|
||||
$this->categories = $result;
|
||||
}
|
||||
}
|
||||
|
||||
public function getCategories(){
|
||||
return $this->categories;
|
||||
}
|
||||
|
||||
}
|
||||
<?php
|
||||
|
||||
define("ARTIST", "1");
|
||||
define("SHOW", "2");
|
||||
|
||||
class Categories {
|
||||
var $categories;
|
||||
var $conn;
|
||||
|
||||
function Categories(){
|
||||
Categories::__construct();
|
||||
}
|
||||
|
||||
function __construct(){
|
||||
$conn =& DB::connect(getDSN());
|
||||
if (DB::isError($conn)){
|
||||
error("Categories: " . $conn->toString());
|
||||
exit();
|
||||
}else {
|
||||
$this->conn = $conn;
|
||||
}
|
||||
|
||||
$sql = "SELECT id, title FROM tf_article_category";
|
||||
$result = $this->conn->query($sql);
|
||||
if (DB::isError($result) != true){
|
||||
$this->categories = $result;
|
||||
}
|
||||
}
|
||||
|
||||
public function getCategories(){
|
||||
return $this->categories;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in new issue
Block a user