diff minato2014/accountcheck.rb @ 610:21f3ff965c03

updated
author MURAKAMI Masaki <c112124@h.koeki-u.ac.jp>
date Sat, 26 Jul 2014 10:39:55 +0900
parents 452cf39c99aa
children 030f81b61fa5
line wrap: on
line diff
--- a/minato2014/accountcheck.rb	Sat Jul 26 10:24:11 2014 +0900
+++ b/minato2014/accountcheck.rb	Sat Jul 26 10:39:55 2014 +0900
@@ -26,8 +26,8 @@
 sex  = c["sex"]
 aria = c["aria"]
 
-sel = 'select * from main where id=?'
-h = db.execute(sel, id.to_i)
+sel = 'select * from main where id=? magic=?'
+h = db.execute(sel, id.to_i, c_magic.to_i)
 
 if id != nil && h != []
 update = 'update main set name=?, job=?, age=?, sex=?, aria=? where id=? and magic=?'

yatex.org