求大神看看这个关于创建有关问题的代码

WBOY
发布: 2016-06-13 13:06:37
原创
928 人浏览过

求大神看看这个关于创建问题的代码

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
<?php error_reporting(E_ALL & ~ E_NOTICE);
echo "<center>";
if (!$_POST["question_num"])
{
    echo "<h2>create question</h2>";
    echo "
登录后复制
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
create those questions is belong to"; echo ""; echo "
how many question will you want to create
"; echo "fuck"; } else if (!$_POST["question_num"]) { echo "

create question

"; echo ""; echo ""; $num=$_POST["question_num"]; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; for ($i=0;$i"; echo ""; echo ""; echo ""; } echo ""; echo ""; echo ""; echo ""; echo "
contentresult
question".($i+1).": "; echo ""; echo "
"; } else { $num=$_POST["question_num"]; $f=$_POST["f"]; $sql="insert into question(`f`,`t`,`content`)values"; for ($i=0;$i"; echo "clickhereto add answer"; } } echo "
"; ?>

数据库方面没有问题,就是我输入问题个数点击下一步的时候,就直接转到下一个添加答案的页面去了...本来应该实现的是,查询question,如果有问题数量没有问题内容时候,进入else if那里面,执行循环创建问题...为什么一直进去不呢..求大神指教指教..

------解决方案--------------------
相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板