<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=TIS-620"> <title>ThaiCreate.Com PHP & SQL Server Tutorial</title> </head> <body> <? $objConnect = mssql_connect("FALCOA-PC\SQL2005","sa","taweesak") or die("Error Connect to Database"); $objDB = mssql_select_db("ONE"); $strSQL = "select docentry,cardName from OINV"; //echo $strSQL ; $result = mssql_query($strSQL); ?> <table width="600" border="1"> <tr> <th width="91"> <div align="center">CustomerID </div></th> <th width="98"> <div align="center">Name </div></th> </tr> <? while($ob= mssql_fetch_array($result)) { ?> <tr> <td><div align="center"><?=$ob["0"];?></div></td> <td><?=$ob["1"];?></td> </tr> <? } ?> </table> <? mssql_close($dbhandle); ?> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง