Ben yazar makale yayınlayacağız şey bir blog yazısı tür kodlama yaşıyorum ve ön sonunda görüntülenir, benim sorunum, ben ön sonunda haber gönderme için belirli koşulları karşılamak zorunda gibi mesajları seçmek için başlar
Ben yani veritabanında 4 alanlar var
title
pic_title
pic_brief
pic_detail
Eğer doğru üç dışında kalan yazı olarak göstermek için kullanılacak varchar veri türü, görüntülerin yolunu tutacaktır başlık tablodan tahmin, ön ucunun biçimi böyle olduğunu
a) there will be total of eight post displaying in the front end (eight entries from the database)
b) there will be three post on the top which will include the value from the table title, pic_title and pic_brief (total of 3 values)
c) and the rest five will contain just the title and pic_title (excluding the three entries of top) Please NOTE: i want the second query to exclude the top 3 record which already exist in the top i.e (first query = 3 post in descending order, second query = 8 - first 3 = 5 post)
I istediğiniz Post Order id DESC tarafından
EDIT: Ben ilk sorguyu aldı
SELECT * FROM news ORDER BY id DESC LIMIT 3
I aynı ikinci sorguyu almak ve azalan sırasına göre değerleri doldurma deneyin Şimdi tekrar aynı kayıtları erişilebilir olacak
Basit bir deyişle i id DESC tarafından son üç kayıtları sırasını atlamak bir sorgu istiyorum
Nasıl PHP bu başarıyı elde edebilirim?