LotGDocker/lotgd-web/lotgd/lib/mounts.php

15 lines
321 B
PHP
Raw Permalink Normal View History

2020-08-17 19:16:42 -04:00
<?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();
}
}
?>