Home  >  Article  >  Backend Development  >  linux 中 关于与php 代码的 <php && ?>

linux 中 关于与php 代码的 <php && ?>

WBOY
WBOYOriginal
2016-06-13 13:47:57784browse

linux 中 关于与php 代码的 在线等

PHP code
<!--

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

--><?php session_start();
    date_default_timezone_set("PRC");
    include_once("access.php");
    $user_name=$_SESSION[user_name];
    include_once("conn.php");
    include_once("update.php");
    $num_query="select * from ".$table_name." where flag= '1' and user_name='".$user_name."'";
    $num_result=mysql_query($num_query);
    $num=mysql_num_rows($num_result);
    function sel_end($start,$end,$check_table){
        $five_query=$check_table." where end_time<='".$end."' and end_time >'".$start."'";
        //echo $five_query;
        $five_result=mysql_query($five_query);
        $num=mysql_num_rows($five_result);
        while($rows=mysql_fetch_array($five_result))
        {
            echo $rows["host_name"]."  ";
        }
        echo "<br>";
    }
?>



里面 end_time后面的>号 估计 把 我想请问怎么样处理 让它到最后 “?>”这里结束

------解决方案--------------------
$five_query=$check_table." where end_time $start ";

你可以试一试!
------解决方案--------------------
会出现你说的问题吗?
------解决方案--------------------
看你的代码 不会出现你说的问题
你可以看看原来的代码 在 > 附近有没有什么符号有问题 比如说用全角的了 中文输入法输入的了
------解决方案--------------------
那是字符串怎么可能有这问题 呢
------解决方案--------------------
你怎么确定是这一行 提示什么了? 图片上传CSDN的空间再贴上来
你引用的文件看下有没有问题
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn