Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How to display 2 images horizontal in php?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #236826
    camval20
    Participant

    I am currently stock with my problem , I can’t display the image don’t know why but please help me
    for($i=0; $rows = $results->fetch(); $i++){
    if($dsds=='Commissoner'){
    echo $rows['prog_id'].$rows['prog_id'].'  '.$rows['prog_name'].'  =  '.$rows['votes'];
    }else {
    echo'<?php $src=array("candidates/images/".$rows["image"]); for($i=0;$i<3;$i++){ ?>';
    //echo ‘<?php ‘;
    echo ‘” class=”image-inner” />’;

    //echo '&lt;imgsrc=”candidates/images/’.$rows[‘image’].'” width=”70″ height=”80px” />’.’, ‘.'<br>’.$rows[‘lastname’].’, ‘.$rows[‘firstname’].'<br>’.’ = ‘.$rows[‘votes’];
    // echo ‘

    <

    div>’;

                                //  echo '&lt;br&gt;';
                                }
    
                                    $sdsd=$dsada    
                                ?&gt;
                        &lt;!-- <img />'height='10'&gt;--&gt;
                        &lt;?php 
                        if ($rows['votes']==0){
                        echo "&lt;br&gt;";}
                        else {
                    //  echo(100*round($rows['votes']/($sdsd),2)); /
                    /*?&gt;%&lt;br&gt;*/
    

    `

    /<em><?php
    }
    echo ‘</div>’;</em>/
    }
    }
    ?>
    <?php
    }
    ?>“

    Here’s my css

    .image-inner {
    position: relative;
    width: 350px;
    display: inline-bloxk;
    }

    My only problem how to display my image horizontally from db

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.