예를 들어 특정 테이블의 기사가 7 일을 경과 한 다음 페이지에 알림 창이 표시되면 이전 기사를 업데이트해야하는 웹 페이지가 표시됩니다.동일한 디자인의 여러 테이블에서 값을 확인하려면 어떻게합니까?
날짜를 여러 번 확인하려면 어떻게해야합니까? 테이블?
$sql = "select topic.*
, id.*
from $table_1
, $table2
where (date of the article) < (<date of the article+ 7 days...>)" ;
// the arctile has passed 7 days
$rs = mysql_query($sql);
$nos = mysql_num_rows($rs);
$obj = mysql_fetch_object($rs);
if($row = mysql_fetch_array($sql))
{
// I want to display window that display note
// there is artiles need to be updated and list of those topics"
<script language="javascript" type="text/javascript">
function print_msg(opt,id)
{
if(confirm("show old topics"))
{
window.location="home.php";
}
else
{
return false;
}
}
</script>
//here are the topics need to be updated
echo obj->topic;
}
우선 SQL에 " – riso
"이 누락되었습니다. 둘째, 질문이 명확하지 않으며 코드가 아닙니다. –
수정하려고 시도합니다. – Iman25