listBoards() functions
This commit is contained in:
parent
c9adbdda4c
commit
e16a05cda7
@ -56,6 +56,18 @@
|
|||||||
} else return false;
|
} else return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function listBoards() {
|
||||||
|
global $sql;
|
||||||
|
sql_open();
|
||||||
|
$boards_res = mysql_query("SELECT * FROM `boards`", $sql) or error(mysql_error($sql));
|
||||||
|
|
||||||
|
$boards = Array();
|
||||||
|
while($_board = mysql_fetch_array($boards_res)) {
|
||||||
|
$boards[] = $_board;
|
||||||
|
}
|
||||||
|
return $boards;
|
||||||
|
}
|
||||||
|
|
||||||
function threadExists($id) {
|
function threadExists($id) {
|
||||||
global $sql;
|
global $sql;
|
||||||
$thread_res = mysql_query(sprintf(
|
$thread_res = mysql_query(sprintf(
|
||||||
|
Loading…
Reference in New Issue
Block a user