adagfs

by adfsa on December 27th, 2010
No notes
Syntax: No syntax
Show lines - Hide lines - Show in textbox - Download
  1. <?php
  2. $Server ="\SQLEXPRESS";
  3. $User ="sa";
  4. $Pass ="";
  5.  
  6. mssql_connect($Server,$User,$Pass) or die("เชื่อมต่อSQLไม่ได้");
  7.  
  8. if(isset($_POST['submit']))
  9. {
  10. $user = $_POST['account'];
  11. if($user == "")
  12. {
  13. echo "ใส่ไอดีด้วยครับ";
  14. }
  15. else
  16. {
  17. $getacc = mssql_query("Select * from [CHARACTER_01_DBF].dbo.Character_TBL WHERE account='$user'");
  18. if(mssql_num_rows($getacc) != 0)
  19. $change = mssql_query("UPDATE [CHARACTER_01_DBF].dbo.Character_TBL SET m_tGuildMember ='' WHERE account ='$user'");
  20. if($change) { echo "แก้2วันแล้วครับ"; } else { echo "ไม่พบตัวละครในไอดีดังกล่าว";}
  21. }
  22. }
  23. ?>
  24. <form method="POST">
  25. Username: <input type="text" name ="account"><br />
  26. <input type="submit" name="submit" value="แก้2วัน">
  27. </form>
  28.  

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS