With xlApp.ActiveSheet.Cells(i, 6) .NumberFormat = "@" 'Text formatting .Value = "8888888888888888888" End With
$xlApp->ActiveSheet->Cells(4,5)->Font->Name = "Tahoma"; $xlApp->ActiveSheet->Cells(4,5)->NumberFormat = "@"; $xlApp->ActiveSheet->Cells(4,5)->Value = "DD-MM-YYY";
header("Content-Type: application/x-msexcel; name=\"report.xls\""); header("Content-Disposition: inline; filename=\"report.xls\""); header("Pragma: no-cache"); <table width="70%" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#333333"> <tr> <td bgcolor="#999999"><div align="center"><strong>aaaaa</strong></div></td> <td bgcolor="#999999"><div align="center"><strong>bbbbb</strong></div></td> <td bgcolor="#999999"><div align="center"><strong>cccccc</strong></div></td> </tr> <? $sql_1 = " SELECT * FROM table $result = mysql_query($sql_1) or die(mysql_error()); while($aa=mysql_fetch_array($result)){ foreach($aa as $k=>$v) { $$k = $v; } ?> <tr> <td bgcolor="#CCCCCC"><? echo $aaa;?></td> <td bgcolor="#CCCCCC"><? echo $bbb;?></td> <td bgcolor="#CCCCCC"><? echo $ccc;?></td> </tr> <? } //end while loop ?> </table>
<td bgcolor="#CCCCCC">'<? echo $ccc;?></td>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง