$result = mysqli_query(Db::$link,"
select *
from `ka_fatora`
where DATE_format(`date`,'Y')='2017'
");
date = I want to select value after converting it to (Y)// y : year the value in database as 1485921351.
$result = mysqli_query(Db::$link,"
select *
from `ka_fatora`
where DATE_format(`date`,'Y')='2017'
");
date = I want to select value after converting it to (Y)// y : year the value in database as 1485921351.
Try Below MySQLi
Query
$result = mysqli_query(Db::$link,"
SELECT * FROM `ka_fatora`
WHERE DATE_FORMAT(FROM_UNIXTIME(date), "%Y")='2017'
");