我创建了一个流量交换,它给了我这个错误:警告:number_format() 期望参数 1 是第 165 行的 /home/rainingt/public_html/quadhits/index.php 中给出的 double.object。如何解决这个问题?
<tr>
<td style="color: #336699; font-weight: bold">:
<?= number_format( $C->sfrfv( 'sum(num)', '7statsite', 'where date="' . date( 'Y-m-d' ) . '"' ), 0, '', ' ' ) ?>
</td>
</tr>
<tr>
<td style="color: black">Pages yesterday</td>
<td style="color: #336699; font-weight: bold">:
<?= number_format( $C->sfrfv( 'sum(num)', '7statsite', 'where date="' . date( 'Y-m-d', time() - 86400 ) . '"' ), 0, '', ' ' ) ?>
</td>
</tr>
<tr>
<td style="color: black">Unique surfers today</td>
(LINE 165)
<td style="color: #336699; font-weight: bold">:
<?= number_format( $C->sfrfv( 'count(usrid)', '7stat', 'where date="' . date( 'Y-m-d' ) . '" group by date' ), 0, '', ' ' ) ?>
</td>
</tr>
<tr>
<td style="color: black">Unique surfers yesterday</td>
<td style="color: #336699; font-weight: bold">:
<?= number_format( $C->sfrfv( 'count(usrid)', '7stat', 'where date="' . date( 'Y-m-d', time() - 86400 ) . '" group by date' ), 0, '', ' ' ) ?>
</tr>