打印师3连续(从左到右)

时间:2017-10-25 15:51:27

标签: php mysql

以下代码结果从左到右显示。在打印时,它逐一下降。打印地址。如何连续从左到右3打印?

<section class="contact-page-section">
      <div class="container">
                <div class="row">
    <?php

                $query = "SELECT * FROM sub";

                $num_results_per_page = 4;
                $num_page_links_per_page = 5;

$result = mysql_query($query);
$row = mysql_fetch_array($result);
pagination($query, $num_results_per_page, $num_page_links_per_page, $pg_param);

if($pg_error == '')
{
if(mysql_num_rows($pg_result) > 0)
    {
    while($data = mysql_fetch_assoc($pg_result))
        {
        echo "<div class=\"col-md-3 col-sm-6\">
                        <div class=\"shop-item-small bg-alfa\">
                            <h6>". $data['id_user'] .".&nbsp;". $data['firstname'] .".&nbsp;". $data['lastname'] ."</h6>
                            <p class=\"sub-title\">". $data['address'] ."<br/>". $data['district'] ."&nbsp;-&nbsp;". $data['pincode'] ."<br/>". $data['state'] ."&nbsp;&nbsp;". $data['country'] ."</p>
                            <p class=\"sub-title\"><b>Phone : </b>". $data['phone'] ."</br>
                            <b>Mobile : </b>". $data['mobile'] ."</br>
                            <b>Email : </b>". $data['email'] ."</p>
                            <p class=\"sub-title\"><b>From : </b>". $data['subfrm'] ."</br>
                            <b>To : </b>". $data['subto'] ."</br>
                            <b>C/O : </b>". $data['co'] ."</p>
                            <p class=\"sub-title\"><b>". $data['through'] ."</b>&nbsp;&nbsp;". $data['amount'] ."</br>
                            <b>Details : </b>". $data['bankdetails'] ."</p>
                            <p class=\"sub-title\"><b>OrderForm No : </b>". $data['orderform'] ."</p>
                            <p class=\"sub-title\"><b>Agent : </b>". $data['agent'] ."</p>

                        </div>
                    </div>";
        }


echo "<div class=\"errormsg\">$pagination_output</div>"; 
}
else
{
echo "<p>No subscriptions to display</p>";
}
}
else{
echo $pg_error; //display any errors, you can remove this if you want}?>

请帮我解决这个问题。

0 个答案:

没有答案