query($sql); $i=1; while($row=$res->fetch_row()){ echo ''; echo ''.$i.''; foreach($row as $k=>$v){ echo ''.$v.''; } echo ""; $i++; echo "/> query($sql); $i=1; while($row=$res->fetch_row()){ echo ''; echo ''.$i.''; foreach($row as $k=>$v){ echo ''.$v.''; } echo ""; $i++; echo ">

select-php表格循环输出后在最后一行求和

WBOY
Release: 2016-06-02 11:28:14
Original
985 people have browsed it

selectphpsql

$sql="select * from acces";

$res=$mysqli->query($sql);
$i=1;
while($row=$res->fetch_row()){
echo ''

;
echo ''.$i.'';
foreach($row as $k=>$v){
echo ''.$v.'';
}
echo "";
$i++;
echo '';
}
我想在这个代码基础上输出的表格最后一行求和
图片说明
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!