点击投票后会显示:
Notice: Undefined index: radio_6 in /home/doyouhike/www/public/poll/index.php on line 108
INSERT INTO poll_results SET ItemID = 6, UserID = 55712, ChoiceID =
1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
这个投票包含5个单选项目,每个项目都是10选1
出现这个错误信息是因为程序没有考虑到你在某个项目中没有选择任何一个选项的情况
已经修正
在此说明:
1. 所有的投票都可以在截止时间前多次投票,只记录最后一次的投票结果——也就是说允许改投。
2. 5个单选项目中如果没有都作出选择,程序只记录有选择的。这也是为什么5个结果总票数不一致的原因。
投票这个部分的程序因比较仓促有很多问题,望大家包涵。
还有问题,
投票成功后页面转向 投票结果, 显示黑底白字的底层代码:
Array
(
[0] => FusionCharts Object
(
[chartType] => column3d
[chartID] => Column3D1
[SWFFile] => http://static.doyouhike.net/images/fc/FCF_Column3D.swf
[SWFPath] => http://static.doyouhike.net/images/fc/
[width] => 750
[height] => 360
[del] => ;
[strXML] =>
[seriesType] => 1
[chartParams] => Array
(
[caption] =>
[chartLeftMargin] => 20
[chartRightMargin] => 20
[chartTopMargin] => 25
[chartBottomMargin] => 25
[bgColor] => ffffff
[baseFont] => Verdana
[baseFontSize] => 12
[baseFontColor] => 000000
[yAxisName] => Total Votes
[showPercentageValues] => 1
[decimalPrecision] => 0
[formatNumberScale] => 0
)
......................................................以下还有代码, 省略.......................................
最近公司测试人员紧张,很想把楼主找来兼职
这个真可以考虑
