<html> <head> <title>ThaiCreate.Com PHP & MySQL Tutorial</title> </head> <body> <? $objConnect = mysql_connect("localhost","root","root") or die("Error Connect to Database"); $objDB = mysql_select_db("mydatabase"); $strSQL = "UPDATE customer SET "; $strSQL .="CustomerID = '".$_POST["txtCustomerID"]."' "; $strSQL .=",Name = '".$_POST["txtName"]."' "; $strSQL .=",Email = '".$_POST["txtEmail"]."' "; $strSQL .=",CountryCode = '".$_POST["txtCountryCode"]."' "; $strSQL .=",Budget = '".$_POST["txtBudget"]."' "; $strSQL .=",Used = '".$_POST["txtUsed"]."' "; $strSQL .="WHERE CustomerID = '".$_GET["CusID"]."' "; $objQuery = mysql_query($strSQL); if($objQuery) { echo "Save Done."; echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />"; echo "<script language='javascript'>alert('Save Done.');</script>"; echo "<meta http-equiv='refresh' content='0;URL=file_name.php?id=".$_GET['id']."'>"; } else { echo "Error Save [".$strSQL."]"; echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />"; echo "<script language='javascript'>alert('Error Save.');</script>"; echo "<meta http-equiv='refresh' content='0;URL=file_name.php?id=".$_GET['id']."'>"; } mysql_close($objConnect); ?> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง