处理虚假列的PHP / CSS样式的问题

时间:2014-05-14 23:10:02

标签: javascript php html mysql css

这是我的代码的重要组成部分:

            <div class="cont_table clearfix">
            <div class="main");
                <?php
                                            $number=$_POST['memform']
                    echo("<br>");
                    echo("<br>");
                    echo("<br>");
                    echo("The Post is " . $number . ".");

                    if ($number<1) {
                            echo("<span style=\"color:white\">");
                                echo("Nunc ac viverra magna. Pellentesque vitae hendrerit metus. Suspendisse potenti. Integer vitae mauris sit amet libero adipiscing molestie. Phasellus pellentesque magna non lorem commodo feugiat. Sed id lorem nec sapien cursus vehicula. Sed iaculis, urna et cursus facilisis, odio ipsum dignissim felis, vel placerat metus mauris vestibulum lectus. Integer porta consequat mauris, eleifend blandit lorem fringilla quis. Phasellus fermentum velit molestie, porta ante eu, euismod metus.");

                                echo("I searched StackOverflow to see if there were any fixes to the clicking and dragging issue. I found a JavaScript solution that seemed to work, but it");

                                echo("Nunc ac viverra magna. Pellentesque vitae hendrerit metus. Suspendisse potenti. Integer vitae mauris sit amet libero adipiscing molestie. Phasellus pellentesque magna non lorem commodo feugiat. Sed id lorem nec sapien cursus vehicula. Sed iaculis, urna et cursus facilisis, odio ipsum dignissim felis, vel placerat metus mauris vestibulum lectus. Integer porta consequat mauris, eleifend blandit lorem fringilla quis. Phasellus fermentum velit molestie, porta ante eu, euismod metus.");

                                echo("I searched StackOverflow to see if there were any fixes to the clicking and dragging issue. I found a JavaScript solution that seemed to work, but it");

                                echo("Nunc ac viverra magna. Pellentesque vitae hendrerit metus. Suspendisse potenti. Integer vitae mauris sit amet libero adipiscing molestie. Phasellus pellentesque magna non lorem commodo feugiat. Sed id lorem nec sapien cursus vehicula. Sed iaculis, urna et cursus facilisis, odio ipsum dignissim felis, vel placerat metus mauris vestibulum lectus. Integer porta consequat mauris, eleifend blandit lorem fringilla quis. Phasellus fermentum velit molestie, porta ante eu, euismod metus.");

                                echo("I searched StackOverflow to see if there were any fixes to the clicking and dragging issue. I found a JavaScript solution that seemed to work, but it");  

                            echo("</span>");
                        }        
                        else {
                            ini_set('display_errors',1); 
                            error_reporting(E_ALL);
                            $main_query = $main_query . "A.MEMBER_ID = \"". $number . "\"";
                            $con=mysql_connect("my02.winhost.com","fkinkade","19F1reB1rd99");
                            mysql_select_db("mysql_75053_fgk2",$con);
                            $result1 = mysql_query($main_query,$con); 
                            // for each member name, create the HTML<option> tag with the data name 
                                while($row1 = mysql_fetch_array($result1))
                                  {
                                        echo("<br>");
                                        echo($row1['MEMBER_NAME']);
                                  } 
                        }  
                ?>
            </div> 
            <div class="sidebar">
                Nunc ac viverra magna. Pellentesque vitae hendrerit metus. Suspendisse potenti. Integer vitae mauris sit amet libero adipiscing molestie. Phasellus pellentesque magna non lorem commodo feugiat. Sed id lorem nec sapien cursus vehicula. Sed iaculis, urna et cursus facilisis, odio ipsum dignissim felis, vel placerat metus mauris vestibulum lectus. Integer porta consequat mauris, eleifend blandit lorem fringilla quis. Phasellus fermentum velit molestie, porta ante eu, euismod metus.

                I searched StackOverflow to see if there were any fixes to the clicking and dragging issue. I found a JavaScript solution that seemed to work, but it

                Nunc ac viverra magna. Pellentesque vitae hendrerit metus. Suspendisse potenti. Integer vitae mauris sit amet libero adipiscing molestie. Phasellus pellentesque magna non lorem commodo feugiat. Sed id lorem nec sapien cursus vehicula. Sed iaculis, urna et cursus facilisis, odio ipsum dignissim felis, vel placerat metus mauris vestibulum lectus. Integer porta consequat mauris, eleifend blandit lorem fringilla quis. Phasellus fermentum velit molestie, porta ante eu, euismod metus.

                I searched StackOverflow to see if there were any fixes to the clicking and dragging issue. I found a JavaScript solution that seemed to work, but it

                Nunc ac viverra magna. Pellentesque vitae hendrerit metus. Suspendisse potenti. Integer vitae mauris sit amet libero adipiscing molestie. Phasellus pellentesque magna non lorem commodo feugiat. Sed id lorem nec sapien cursus vehicula. Sed iaculis, urna et cursus facilisis, odio ipsum dignissim felis, vel placerat metus mauris vestibulum lectus. Integer porta consequat mauris, eleifend blandit lorem fringilla quis. Phasellus fermentum velit molestie, porta ante eu, euismod metus.

                I searched StackOverflow to see if there were any fixes to the clicking and dragging issue. I found a JavaScript solution that seemed to work, but it

                Nunc ac viverra magna. Pellentesque vitae hendrerit metus. Suspendisse potenti. Integer vitae mauris sit amet libero adipiscing molestie. Phasellus pellentesque magna non lorem commodo feugiat. Sed id lorem nec sapien cursus vehicula. Sed iaculis, urna et cursus facilisis, odio ipsum dignissim felis, vel placerat metus mauris vestibulum lectus. Integer porta consequat mauris, eleifend blandit lorem fringilla quis. Phasellus fermentum velit molestie, porta ante eu, euismod metus.

                I searched StackOverflow to see if there were any fixes to the clicking and dragging issue. I found a JavaScript solution that seemed to work, but it

                Nunc ac viverra magna. Pellentesque vitae hendrerit metus. Suspendisse potenti. Integer vitae mauris sit amet libero adipiscing molestie. Phasellus pellentesque magna non lorem commodo feugiat. Sed id lorem nec sapien cursus vehicula. Sed iaculis, urna et cursus facilisis, odio ipsum dignissim felis, vel placerat metus mauris vestibulum lectus. Integer porta consequat mauris, eleifend blandit lorem fringilla quis. Phasellus fermentum velit molestie, porta ante eu, euismod metus.

                I searched StackOverflow to see if there were any fixes to the clicking and dragging issue. I found a JavaScript solution that seemed to work, but it

                Nunc ac viverra magna. Pellentesque vitae hendrerit metus. Suspendisse potenti. Integer vitae mauris sit amet libero adipiscing molestie. Phasellus pellentesque magna non lorem commodo feugiat. Sed id lorem nec sapien cursus vehicula. Sed iaculis, urna et cursus facilisis, odio ipsum dignissim felis, vel placerat metus mauris vestibulum lectus. Integer porta consequat mauris, eleifend blandit lorem fringilla quis. Phasellus fermentum velit molestie, porta ante eu, euismod metus.

                I searched StackOverflow to see if there were any fixes to the clicking and dragging issue. I found a JavaScript solution that seemed to work, but it

            </div> 
        </div>   

&#34; memform&#34;来自包含MySQL数据库驱动下拉列表的表单/选择。我遇到了一个问题,只要刷新浏览器,下拉列表的先前结果仍会显示。我想清楚这一点&#34; MAIN&#34;假柱,但如果我这样做,它允许&#34; SIDEBAR&#34;用于接管容器输入宽度的虚拟列。所以,我想我只是尝试评估$ _POST,看看它是否有一个数字,如果没有,请加入一些虚假文本(以保持MAIN列充气)并将其着色为白色。

这很有效。

但是,当我返回并从SELECT元素中进行另一个选择时,没有任何变化。它似乎拒绝再次返回PHP代码。然而,如果没有这个,并且在您进行新选择之前处理之前的结果,每次进行选择时都会生成新的结果。

我怎样才能让它看起来干净&#34;在浏览器之间刷新并清除上一个会话中最后选择的数据的MAIN列?

谢谢,

弗林

0 个答案:

没有答案