사실 나는 논리에 갇혀있다. 일일 내 쿼리 자동 업데이트 내 론 0 1 (is_new) PHP mysql 쿼리 업데이트 후 1 일
$timezone = "Asia/Karachi";
if(function_exists('date_default_timezone_set')) date_default_timezone_set($timezone);
$unixtime = strtotime("-1440 minutes",strtotime($row['post_date']));
echo $time = date(" d ",$unixtime);
그래서 내 테이블 행 is_new 값이 0
1 P.S 변경됩니다 후
내가 원하는 : 내가 원하는 것. Ans : 데이터베이스에 추가하는 것이 show (New)이고 1 일 후에 자동으로 새로운 것이 제거되기를 원합니다. ref : http://i43.tinypic.com/2iv1x0g.png
설치 플래그를 업데이트하는 매 24 시간 실행 cronjob,하지만 난 왜 당신이이 필드를 생성하기 위해 쿼리를 사용하지 않는지 이해하지 마십시오 – DevZer0