<?php //index.php
include(ayar.php);
$database = mysql_query("select * from veriler");
while(list($zaman) = mysql_fetch_row($database))
{
echo date('d.m.Y H:i:s', $zaman);
include(indextime.php);
}
?>Görüntü
<?php //indextime.php
$sa = time() - $zaman;
?><font color=orange >
<SCRIPT type=text/javascript>
//////////////////////Burası Değişken/////////////////////////////////
var currenttime = '<?php echo date("Y F d H:i:s", $sa)?>'
//////////////////////Burası Javascript/////////////////////////////////
var serverdate=new Date(currenttime)
function padlength(what){
var output=(what.toString().length==1)? "0"+what : what
return output}
function displaytime(){serverdate.setSeconds(serverdate.getSeconds()+1)
var datestring=(serverdate.getMonth())+"</font><font color=Yellow >Ay</font><font color=orange >"+(serverdate.getDate()-1)+"</font><font color=Yellow >Gün</font><font color=orange >"
var timestring=padlength(serverdate.getHours()-2)+"</font><font color=Yellow >Sa</font><font color=orange >"+padlength(serverdate.getMinutes())+"</font><font color=Yellow >Dk</font><font color=orange >"+padlength(serverdate.getSeconds())+"</font><font color=Yellow >Sn</font><font color=orange >"
document.getElementById("servertime").innerHTML=datestring+" "+timestring}
window.onload=function(){setInterval("displaytime()", 1000)}
</SCRIPT>
<SPAN id=servertime></SPAN>
Yukarıdaki listede echo verisi kadar include döndürmek istiyorum
ama 1 kere include döndürüyo sonrasında döndürüyor fakat değer yok
yardımlarınızı bekliyorum