changeset 737:60b233353ed5

prof.rb id468
author ARAKI Tsuyohito <c113007@e.koeki-u.ac.jp>
date Wed, 08 Jul 2015 00:16:03 +0900
parents 1b644833d5d2
children f0520322b05b
files oasis2015/prof.rb
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/oasis2015/prof.rb	Wed Jul 08 00:14:53 2015 +0900
+++ b/oasis2015/prof.rb	Wed Jul 08 00:16:03 2015 +0900
@@ -7,7 +7,8 @@
 db = SQLite3::Database.new("./sql/main.sq3")
 
 id = c.cookies["id"][0]
-person = id.to_i
+person = 468
+#id.to_i
 
 data = "select * from goods where id = ?"
 #idが?(後で代入)のデータをtest票から探す。という命令をdataにしくむ。全てがほしい場合は「*」。「*」を「name」に変えると該当データのnameだけとりだす。

yatex.org