changeset 3416:033441bf7496

kayaku4.rbÊѹ¹
author OOTANI Hiroyuki <c115036@g.koeki-u.ac.jp>
date Thu, 27 Jul 2017 01:55:39 +0900
parents da6206065ef8
children 02b1f4576d42
files event/oasis2017/ikusei/kayaku4.rb
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/event/oasis2017/ikusei/kayaku4.rb	Thu Jul 27 01:41:41 2017 +0900
+++ b/event/oasis2017/ikusei/kayaku4.rb	Thu Jul 27 01:55:39 2017 +0900
@@ -57,18 +57,18 @@
   now = Time.now.strftime("%F %T")
   db.execute("REPLACE INTO users VALUES(?, ?, ?)", id, form_name, now);
 else				# フォームã§nameãªã‘ã‚Œã°dbã‹ã‚‰
-
-  # dbname = db.execute("SELECT name from users WHERE id=?", id)[0][0]
-  #if dbname != nil
-  # playname = dbname		# データベースã‹ã‚‰ã®ã®åå‰ã‚’プレイåã¨ã™ã‚‹
-  #end
-  #end
   
-  dbn = db.execute("SELECT name from users WHERE id=?", id)[0]
-  if dbn != nil && dbn[0]
-    playname = dbn[0]
+   dbname = db.execute("SELECT name from users WHERE id=?", id)[0][0]
+  if dbname != nil
+   playname = dbname		# データベースã‹ã‚‰ã®ã®åå‰ã‚’プレイåã¨ã™ã‚‹
   end
   end
+  
+  #dbn = db.execute("SELECT name from users WHERE id=?", id)[0]
+  #if dbn != nil && dbn[0]
+   # playname = dbn[0]
+  #end
+#end
 
 
 if playname == ""

yatex.org