Initial commit
This commit is contained in:
14
lotgd-web/lotgd/lib/mounts.php
Executable file
14
lotgd-web/lotgd/lib/mounts.php
Executable file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
// translator ready
|
||||
// addnews ready
|
||||
// mail ready
|
||||
function getmount($horse=0) {
|
||||
$sql = "SELECT * FROM " . db_prefix("mounts") . " WHERE mountid='$horse'";
|
||||
$result = db_query_cached($sql, "mountdata-$horse", 3600);
|
||||
if (db_num_rows($result)>0){
|
||||
return db_fetch_assoc($result);
|
||||
}else{
|
||||
return array();
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user