PHP中提取的数据无法正常显示

时间:2016-12-09 07:04:53

标签: php

我从数据库中获取数据,我必须在设计部分显示数据。我可以根据设计从数据库中获取数据。我提取的数据包含字段imageposition

enter image description here

<?php 
$CompanyImages = $controller->ourcompany_Images();
foreach($CompanyImages as $OurCompanyImages) {
    if($OurCompanyImages['POSITION']==1){

    }
    else if($OurCompanyImages['POSITION']==2){}
    else if($OurCompanyImages['POSITION']==3){}
}
?>

设计

<div class="row">

<?php 
$CompanyImages = $controller->ourcompany_Images();
foreach($CompanyImages as $OurCompanyImages) {
    if($OurCompanyImages['POSITION']==1){

    }
    else if($OurCompanyImages['POSITION']==2){}
    else if($OurCompanyImages['POSITION']==3){}
}
?>

<div class="col-sm-3">
    <div class="company-imgs wow fadeInUp" data-wow-delay="0s"><img src="images/our-company-1.jpg" class="img-responsive"></div>
</div>

<div class="col-sm-9">
    <div class="company-right">
        <div class="row">
            <div class="col-sm-12">
                <div class="company-imgs wow fadeInUp" data-wow-delay=".2s"><img src="images/our-company-3.jpg" class="img-responsive"></div>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-3">
                    <div class="company-imgs wow fadeInUp" data-wow-delay=".4s"><img src="images/our-company-2.jpg" class="img-responsive"></div>
                </div>
                <div class="col-sm-9">
                    <p class="wow fadeInUp" data-wow-delay="0.6s">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</p>
                    <p class="wow fadeInUp" data-wow-delay="0.6s">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.</p>
                </div>
            </div>
        </div>
    </div>
</div>

0 个答案:

没有答案