Mobile-Detect.
Use simple code below:
In Javascript, there are many script or lib to do this. Here one of mine:
mysql (or may be whole SQL) RIGHT:
$age = '(YEAR(date) - ' . date('Y', $birthday) . ') - (RIGHT(date, 5) < "' . date('m-d', $birthday) . '")';
SQL get 1st n last day of the month:
include 'Mobile_Detect.php'; $detect = new Mobile_Detect(); // Check for any mobile device. if ($detect->isMobile()) // mobile content else // other content for desktopsSource code download here: Mobile Detect
In Javascript, there are many script or lib to do this. Here one of mine:
@extends('layouts.main') @section('head') @stop @section('content') @stop @section('script') @stopMy script above is one of my index page. It write in Laravel blade template. The JS check android and iOS version. It also check IE, if true raise alert not supported.
mysql (or may be whole SQL) RIGHT:
$age = '(YEAR(date) - ' . date('Y', $birthday) . ') - (RIGHT(date, 5) < "' . date('m-d', $birthday) . '")';
SQL get 1st n last day of the month:
echo date("Y-n-j", strtotime("first day of previous month"));
echo date("Y-n-j", strtotime("last day of previous month"));
at March 3 returns
2014-10-1
2014-10-31
git ls-files --deleted -z | xargs -0 git rm
ReplyDelete