Code (C#) <?php @header ('Content-type: text/html; charset=utf-8'); include('client_setting.php'); $connect = mssql_connect( $dbhost,$dbusername,$dbpassword); if ( !$connect ) { echo "ติดต่อกับฐานข้อมูล Mssql ไม่ได้ "; exit(); } $condb = mssql_select_db($db); if($_POST[input] = "input"){ $id = addslashes($_POST[username]); $password = addslashes($_POST[password]); $email = addslashes($_POST[email]); $re_email = addslashes($_POST[re_email]); $sql = "select email from game_acc where account='$id' and password ='$password'" ; if ($objQuery = mssql_query($sql)==1){ $objEmail = mssql_fetch_object($objQuery); if(strnatcasecmp ( $objEmail->email, null)==0){ if(strcmp ( "$email", "$re_email" )==0){ $sql = "update $login_table set email = '$email' where account = '$id' and password ='$password'"; if (mssql_query($sql)) { echo "<script>alert('add email complete ');</script>"; echo '<meta http-equiv="refresh" content="0;URL=./">'; } else { echo "<script>alert('Error Please enter the back buttom to word data again');</script>"; echo '<meta http-equiv="refresh" content="0;URL=./">'; } }else{ echo "<script>alert('email and re-email not match press back button to word data again');</script>"; echo '<meta http-equiv="refresh" content="0;URL=./">'; } }else{ echo "<script>alert('this username can't add email ');</script>"; } }else{ echo "<script>alert('username or password wrong');</script>"; } } ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง