<? include "connect.php"; for($n=1;$n<=$_POST["hdnLine"];$n++) { echo '<br>'; if($_POST["id_m$n"] != "") { $strSQL = "UPDATE saving_money SET "; $strSQL .="id_saving_sts = '".$_POST["id_saving_sts$n"]."' "; $strSQL .="WHERE id_m = '".$_POST["id_m$n"]."' "; $objQuery = mysql_query($strSQL); } } echo"<script>window.location='saving_mount.php'; alert('บันทึกการออมเรียบร้อย '); </script>"; mysql_close($con); ?>
if($_GET["Action"] == "Save") { for($i=1;$i<=$_POST["hdnLine"];$i++) { $strSQL = "UPDATE customer SET "; $strSQL .="CustomerID = '".$_POST["txtCustomerID$i"]."' "; $strSQL .=",Name = '".$_POST["txtName$i"]."' "; $strSQL .=",Email = '".$_POST["txtEmail$i"]."' "; $strSQL .=",CountryCode = '".$_POST["txtCountryCode$i"]."' "; $strSQL .=",Budget = '".$_POST["txtBudget$i"]."' "; $strSQL .=",Used = '".$_POST["txtUsed$i"]."' "; $strSQL .="WHERE CustomerID = '".$_POST["hdnCustomerID$i"]."' "; $objQuery = mysql_query($strSQL); } //header("location:$_SERVER[PHP_SELF]"); //exit(); }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง