select name, avg(rate) rate
from users u
left join replies r on r.user_id = u.id
group by u.name
order by rate desc
Переменная$_SERVER['HTTPS']
принимает непустое значение, если запрос был произведен через протокол HTTPS.
Замечание: Обратите внимание, что при использовании ISAPI с IIS значение будет off, если запрос не был произведен через протокол HTTPS.
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {
// HTTPS
}
$('.multiplier:visible').text()
var options = document.querySelectorAll('.multiplier'),
multiplier;
[].forEach.call(options, function (option) {
if (option.style.display == 'block')
{
multiplier = option.innerText;
}
});
alert(multiplier);
parseFloat()
, если есть такая необходимость. Location
- return a random or set location (also for Google Play services)
- return empty cell location
- return an empty list of (neighboring) cell info
- prevents geofences from being set (also for Google Play services)
- prevents proximity alerts from being set
- prevents sending NMEA data to an application
- prevent phone state from being sent to an application
- Cell info changed
- Cell location changed
- prevent sending extra commands (aGPS data)
- return an empty list of Wi-Fi scan results
- prevent activity recognition
public function get_count($where = FALSE) {
if($where && is_array($where)) {
$this->db->where_in($where);
return $this->db->get($this->table_name)->num_rows;
} else {
return $this->db->count_all($this->table_name);
}
}