为什么同样的sql语句,有的页面能选出来,有的就不可以呢?

尘尘尘 发布于 2012/07/23 10:06
阅读 60
收藏 0

$com_place="select `companies`.`com_name`
                ,`link`.`link_pic`
                ,`city`.`city_name`
                ,`province`.`province_name`
            from `companies`
                ,`city`
                ,`province`
                ,`job_fairs`
     ,`link`
            where `companies`.`is_show`='1'
                and `job_fair_id`='$job_fair_id'
                and `com_id`='$com_id'
                and `companies`.`city_id`=`city`.`city_id`
                and `province`.`province_id`=`city`.`province_id`
            limit 1";
            $place_query=mysql_query($com_place) or die(mysql_error());
            $rowa=mysql_fetch_array($place_query);

 

<div class="Div_ann_title" style="height:70px;">
         <h3 class="P_ann_title"><?php echo $rowa[com_name]; ?></h3>
        </div>

加载中
返回顶部
顶部