ST_DWithin(location, ST_GeomFromText('POINT(120.9982 24.788)', 100)
dв этом случае вроде работает нормально. ST_DWithin(location::geography , ST_GeomFromText('POINT(120.9982 24.788)',4326)::geography , 100)
$subject = "=?UTF-8?B?".base64_encode("Сообщение с сайта Pixellab.cz")."?=";
$from = "pixellab.cz <noreply@pixellab.cz>";
$headers = "From: $from\r\n".
"Reply-To: $from\r\n".
"Return-Path: $from\r\n".
"Content-type:text/plain; charset = utf-8";
mail($to, $subject, $msg, $headers);