Welcome Guest, Not a member yet? Register   Sign In
how i can to show specific record from a table
#1

hi guys
how are you?
i have a question about, how can i show for example last 5 photo added in specific category

sample:
PHP Code:
<?php foreach ($projects as $item): ?>
                        <li>
                            <a href="<?php echo $item->image ?>">
                                <div class="gallery-item"><img src="<?php echo $item->image ?>" alt="<?php echo $item->title ?>"></div>
                            </a>
                        </li>
            <?php endforeach ?>

this code show all records/photos on the projects, i just want to show specific category.

thanks
Reply


Messages In This Thread
how i can to show specific record from a table - by king_ahwaz - 10-31-2018, 06:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB