function GetRecordByID($table,$id){
$id = intval($id);
$query = "SELECT * FROM settings WHERE ID = '$id'";
if (!$sql = mysql_query($query)) {
echo "Error: Can not excute the query. <br>".$query;
} else {
$num = mysql_num_rows($sql);
while ($num > 0) {
$data = mysql_fetch_array($sql);
$num--;
}
}
return $data;
}