Click here to Skip to main content
14,265,748 members

Design and Architecture

 
GeneralRe: Entity Framework in agile environment Pin
Mycroft Holmes23-Aug-18 12:12
memberMycroft Holmes23-Aug-18 12:12 
GeneralRe: Entity Framework in agile environment Pin
jschell23-Aug-18 14:24
memberjschell23-Aug-18 14:24 
AnswerRe: Entity Framework in agile environment Pin
jschell23-Aug-18 14:27
memberjschell23-Aug-18 14:27 
GeneralRe: Entity Framework in agile environment Pin
lw@zi 23-Aug-18 20:10
professional lw@zi 23-Aug-18 20:10 
GeneralRe: Entity Framework in agile environment Pin
jschell25-Aug-18 4:05
memberjschell25-Aug-18 4:05 
AnswerRe: Entity Framework in agile environment Pin
Gerry Schmitz24-Aug-18 5:36
mveGerry Schmitz24-Aug-18 5:36 
AnswerRe: Entity Framework in agile environment Pin
Eddy Vluggen31-Aug-18 22:57
mveEddy Vluggen31-Aug-18 22:57 
Questionhave images on the bottom Pin
Member 1040772716-Aug-18 4:46
memberMember 1040772716-Aug-18 4:46 
<pre>$sql = "SELECT `name`, `email`, `comment` FROM `blog1`";
$result = $conn->query( $sql );
$count = 0;
$images = array("user1.jpg", "user2.jpg", "user3.jpg"); // 

if( $result->num_rows > 0 ) {
    // output data of each row
    while( $row = $result->fetch_assoc() ) {
            echo '
                <div class="comment-block">
                    '.( !empty( $images[$count] ) ? '<img src="images/blog/'.$images[$count].'">' : '').' <!-- Add the count to the images to use it as a key, add check to see if count is a key -->
                    <span class="name">'.$row['name'].'</span>
                    <span class="comment">'.$row['comment'].'</span>
                </div>
            '; 

        $count++; you want
        if( $count == 3 )
        {
          $count = 0; // Reset to 0 if 3 images have been shown
        }
    } 
}

<pre><pre lang="PHP">
.

I tried to figure by my self but it wont work,like put images in div echo '


images should be like on link Blog Post - Lina Creative vCard, Resume, CV[^]

AnswerRe: have images on the bottom Pin
Pete O'Hanlon16-Aug-18 6:02
protectorPete O'Hanlon16-Aug-18 6:02 
GeneralRe: have images on the bottom Pin
Member 1040772716-Aug-18 6:07
memberMember 1040772716-Aug-18 6:07 
GeneralRe: have images on the bottom Pin
Pete O'Hanlon16-Aug-18 10:41
protectorPete O'Hanlon16-Aug-18 10:41 
GeneralRe: have images on the bottom Pin
CHill6016-Aug-18 13:55
protectorCHill6016-Aug-18 13:55 
QuestionActivating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Vaclav_30-Jul-18 3:34
memberVaclav_30-Jul-18 3:34 
AnswerRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Richard MacCutchan1-Aug-18 21:02
protectorRichard MacCutchan1-Aug-18 21:02 
AnswerRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Nathan Minier2-Aug-18 1:27
professionalNathan Minier2-Aug-18 1:27 
GeneralRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Vaclav_2-Aug-18 10:58
memberVaclav_2-Aug-18 10:58 
GeneralRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Nathan Minier3-Aug-18 1:00
professionalNathan Minier3-Aug-18 1:00 
GeneralRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Vaclav_3-Aug-18 7:07
memberVaclav_3-Aug-18 7:07 
GeneralRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Richard MacCutchan3-Aug-18 21:12
protectorRichard MacCutchan3-Aug-18 21:12 
GeneralRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Vaclav_4-Aug-18 4:40
memberVaclav_4-Aug-18 4:40 
GeneralRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Richard MacCutchan4-Aug-18 4:46
protectorRichard MacCutchan4-Aug-18 4:46 
GeneralRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Randor 4-Aug-18 18:13
professional Randor 4-Aug-18 18:13 
GeneralRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Vaclav_4-Aug-18 19:03
memberVaclav_4-Aug-18 19:03 
QuestionTarget communication framework TCF - anybody? Pin
Vaclav_29-Jul-18 14:40
memberVaclav_29-Jul-18 14:40 
AnswerRe: Target communication framework TCF - anybody? Pin
Mycroft Holmes29-Jul-18 16:09
memberMycroft Holmes29-Jul-18 16:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.