Experiments with times #4
This commit is contained in:
parent
e0ce37c469
commit
b08cc7672f
1 changed files with 4 additions and 4 deletions
|
@ -511,7 +511,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
|
|||
$out.='</div>'.N;
|
||||
|
||||
$out.='<div><span class="ilab">'._('Most used hashtags (last week)').'</span> ';
|
||||
$rres=tquery('SELECT * FROM InstTrends WHERE InstID='.$row['ID'].' ORDER BY Pos ASC');
|
||||
$rres=tquery('SELECT * FROM InstTrends WHERE InstID='.$row['ID'].' ORDER BY Pos ASC',__LINE__);
|
||||
if (mysqli_num_rows($rres)>0) {
|
||||
$buf=array();
|
||||
while ($rrow=mysqli_fetch_assoc($rres))
|
||||
|
@ -530,7 +530,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
|
|||
|
||||
$out.='<div class="ghost"><div class="idlab">'._('Stats').'</div><div class="istat">';
|
||||
|
||||
$rres=tquery('SELECT COUNT(InstID) AS cnt, SUM(Statuses) AS tstatuses, SUM(Logins) AS tlogins, SUM(Registrations) AS tregs FROM InstActivity WHERE InstID='.$row['ID']);
|
||||
$rres=tquery('SELECT COUNT(InstID) AS cnt, SUM(Statuses) AS tstatuses, SUM(Logins) AS tlogins, SUM(Registrations) AS tregs FROM InstActivity WHERE InstID='.$row['ID'],__LINE__);
|
||||
$out.='<div class="dida">'._('Last 12 weeks activity');
|
||||
if (mysqli_num_rows($rres)>0) {
|
||||
$rrow=mysqli_fetch_assoc($rres);
|
||||
|
@ -538,7 +538,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
|
|||
$out.=' ('._('totals:').' '.$rrow['tstatuses'].' '._('statuses').', '.$rrow['tlogins'].' '._('logins').', '.$rrow['tregs'].' '._('registrations').')';
|
||||
}
|
||||
$out.='</div>'.N;
|
||||
$rres=tquery('SELECT * FROM InstActivity WHERE InstID='.$row['ID'].' ORDER BY Week ASC');
|
||||
$rres=tquery('SELECT * FROM InstActivity WHERE InstID='.$row['ID'].' ORDER BY Week ASC',__LINE__);
|
||||
$out.='<table class="abar"><tr>';
|
||||
$tot=mysqli_num_rows($rres);
|
||||
if ($tot>0) {
|
||||
|
@ -550,7 +550,7 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
|
|||
}
|
||||
$out.='</tr></table>'.N;
|
||||
|
||||
$rres=tquery($link,'SELECT * FROM InstChecks WHERE InstID='.$row['ID'].' ORDER BY Time DESC LIMIT 0,8');
|
||||
$rres=tquery($link,'SELECT * FROM InstChecks WHERE InstID='.$row['ID'].' ORDER BY Time DESC LIMIT 0,8',__LINE__);
|
||||
$tot=mysqli_num_rows($rres);
|
||||
$buf=array();
|
||||
while ($rrow=mysqli_fetch_assoc($rres)) $buf[]=$rrow;
|
||||
|
|
Loading…
Reference in a new issue