1 回答

TA貢獻1827條經驗 獲得超8個贊
請嘗試如下操作
我試過了,它的工作原理
<div class="col-md-6">
<div class="info-box bg-c-yellow">
<span class="info-box-icon bg-red"><i class="fa fa-chart-bar"></i></span>
<div class="info-box-content">
<span class="info-box-text">Count of Near Miss</span>
<?php
$sql = "SELECT COUNT (*) incident_type FROM iir_incidentmain WHERE incident_type='Accident'";
$stmt = sqlsrv_query( $conn, $sql );
$row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC);
?>
<span class="info-box-number"><?php echo $row['incident_type']?></span>
</div>
</div>
</div>
- 1 回答
- 0 關注
- 155 瀏覽
添加回答
舉報