Click here to Skip to main content
15,888,340 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Entity Framework in agile environment Pin
Mycroft Holmes23-Aug-18 12:12
professionalMycroft Holmes23-Aug-18 12:12 
GeneralRe: Entity Framework in agile environment Pin
jschell23-Aug-18 14:24
jschell23-Aug-18 14:24 
AnswerRe: Entity Framework in agile environment Pin
jschell23-Aug-18 14:27
jschell23-Aug-18 14:27 
GeneralRe: Entity Framework in agile environment Pin
dan!sh 23-Aug-18 20:10
professional dan!sh 23-Aug-18 20:10 
GeneralRe: Entity Framework in agile environment Pin
jschell25-Aug-18 4:05
jschell25-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
professionalEddy Vluggen31-Aug-18 22:57 
Questionhave images on the bottom Pin
Member 1040772716-Aug-18 4:46
Member 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 -->
                    '.$row['name'].'
                    '.$row['comment'].'
                </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
mvePete O'Hanlon16-Aug-18 6:02 
GeneralRe: have images on the bottom Pin
Member 1040772716-Aug-18 6:07
Member 1040772716-Aug-18 6:07 
GeneralRe: have images on the bottom Pin
Pete O'Hanlon16-Aug-18 10:41
mvePete O'Hanlon16-Aug-18 10:41 
GeneralRe: have images on the bottom Pin
CHill6016-Aug-18 13:55
mveCHill6016-Aug-18 13:55 
QuestionActivating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Vaclav_30-Jul-18 3:34
Vaclav_30-Jul-18 3:34 
AnswerRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Richard MacCutchan1-Aug-18 21:02
mveRichard 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
Vaclav_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
Vaclav_3-Aug-18 7:07 
GeneralRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Richard MacCutchan3-Aug-18 21:12
mveRichard MacCutchan3-Aug-18 21:12 
GeneralRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Vaclav_4-Aug-18 4:40
Vaclav_4-Aug-18 4:40 
GeneralRe: Activating Wireless (WiFi) in Linux ( on Raspberry PI ) Pin
Richard MacCutchan4-Aug-18 4:46
mveRichard 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
Vaclav_4-Aug-18 19:03 
QuestionTarget communication framework TCF - anybody? Pin
Vaclav_29-Jul-18 14:40
Vaclav_29-Jul-18 14:40 
AnswerRe: Target communication framework TCF - anybody? Pin
Mycroft Holmes29-Jul-18 16:09
professionalMycroft 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.