Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
519 views
in Q2A Core by
<section id="slider"><!--slider-->
            <div class="container">
                        <?php
                        include('config.php');
                        $result = mysql_query("SELECT * FROM mas_banner" ) ;                        
                        $result_ar = mysql_fetch_assoc($result)                       
                         ?>  
            <div class="row">
                <div class="col-sm-12">
                    <div id="slider-carousel" class="carousel slide" data-ride="carousel">
                        <ol class="carousel-indicators">
                            <li data-target="#slider-carousel" data-slide-to="0" class="active"></li>
                            <li data-target="#slider-carousel" data-slide-to="1"></li>
                            <li data-target="#slider-carousel" data-slide-to="2"></li>
                        </ol>                                       
                        <div class="carousel-inner">
                            <div class="item active">
                                <div class="col-sm-6">
                                    <h1><span></span><?php echo $result_ar['title']; ?></h1>
                                    <h2><?php echo $result_ar['subtitle']; ?></h2>
                                    <p><?php echo $result_ar['content']; ?> </p>
                    <button type="submit" class="btn btn-default get" onclick="parent.location='boobalan/Eshopper/<?php echo $result_ar['btnlink']; ?>'">Get it now</button>
                                </div>
                                <div class="col-sm-6">
                                    <img src="<?php echo $result_ar['mainimg']; ?>" class="girl img-responsive" alt="" />                                    <img src="<?php echo $result_ar['subimg']; ?>"  class="pricing" alt="" />
                                </div>
                            </div>    
                        </div>                                   
                                    <!--?php
                                    //if($result_arr = mysql_fetch_row($result1))
                                    //{
                                    ?>-->                                                                 
                        </div></div></div>                                             
                        </div></section>                                              
                        <a href="#slider-carousel" class="left control-carousel hidden-xs" data-slide="prev">
                            <i class="fa fa-angle-left"></i>
                        </a>
                        <a href="#slider-carousel" class="right control-carousel hidden-xs" data-slide="next">
                            <i class="fa fa-angle-right"></i>
                        </a>
                    </div>                
                </div>
            </div> <?php
                                    //$i+=1;
                                    //}
                                    ?>
        </div>
    </section><!--/slider-->

Please log in or register to answer this question.

...