mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-02 00:27:12 +00:00
add checkOasisExist function
This commit is contained in:
@@ -942,6 +942,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checkOasisExist($wref) {
|
||||||
|
$q = "SELECT * FROM " . TB_PREFIX . "odata where wref = '$wref'";
|
||||||
|
$result = mysql_query($q, $this->connection);
|
||||||
|
if(mysql_num_rows($result)) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function UpdateEditTopic($id, $title, $cat) {
|
function UpdateEditTopic($id, $title, $cat) {
|
||||||
$q = "UPDATE " . TB_PREFIX . "forum_topic set title = '$title', cat = '$cat' where id = $id";
|
$q = "UPDATE " . TB_PREFIX . "forum_topic set title = '$title', cat = '$cat' where id = $id";
|
||||||
return mysql_query($q, $this->connection);
|
return mysql_query($q, $this->connection);
|
||||||
|
|||||||
Reference in New Issue
Block a user