作者foxzgerald (O⊥M)
看板PHP
标题Re: [请益] 真的没办法了..
时间Fri Jan 12 23:21:56 2007
※ 引述《godinx (诺兰德)》之铭言:
: $query = "update poll_results
: set num_votes = num_votes + 1
: where candidate = '$vote'";
~
: $good = "select num_votes from poll_results where good";
$good =
"SELECT num_votes FROM poll_results WHERE candidate = 'good'"; // ?
: ?>
: 我现在的方式是把值全存在同一个table里面(poll_results)
: 然後将栏位分成 good,soso,bad 其初始值为零
: 每次假如点选後案送出其值就+1
: 不过现在我变成不知道怎样让网页显示出来分别查询
: good soso bad 的值
: 请问一下我应该要输入哪些程式才可以叫出我想要的值呢?
: 谢谢!
--
「640K ought to be enough for anybody.!」
- Bill Gates -
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.119.199.121
1F:推 godinx:那个是我在测试怎样从资料库读取值出来~ 01/13 00:49
2F:→ godinx:我是想分别读取出GOOD SOSO BAD的值~可是没办法 01/13 00:50