我想在Excel文件中导出输出数据短代码是什么?这是我的脚本:
echo 'Email Address,';
for ($i=1;$i<12; $i++){
echo "email$i,";
}echo "\n";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
echo $row['Contact_Email'].',';
for ($i=1;$i<12; $i++){
echo (empty($row['email'.$i])?'no':'yes').',';
}
echo "\n";
}
/********************/
Two rows New Update
echo 'New Email Address,';
for ($i=1;$i<12; $i++){
echo "email$i,";
}echo "\n";
$result = mysql_query($sql);