|
#1
|
|||
|
|||
|
about RSS Feed
hi, there.
now i succeeded in feeding RSS on my private site, and checked it by sage with Firefox. it looks fine. here is my question; how can i limit the number of the posts shown on the RSS Reader? now i can see all the posts on the sage. i want to limit the number (more or less 10 posts). does anyone know about it? |
|
#2
|
||||
|
||||
|
I believe you replace (could be wrong)
Code:
$query = mysql_query("select id,datetime,headline,body,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') order by datetime desc");
Code:
$query = mysql_query("select id,datetime,headline,body,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') order by LIMIT 0,10 datetime desc");
well, that would limit it to 10 (if it works)
__________________
i should say more clever stuff |
|
#3
|
|||
|
|||
|
hi, blinking8s! Thank you for your reply.
yes, i've tired what you taught me. this is the result; Quote:
|
|
#4
|
|||
|
|||
|
damn... it's true, the RSS feed returns all posts!
I checked your nice 88:88 blog, the feed shows 84 photos... can anyone fix it? I think 10 posts, or a selectable value, will match the needs of feed-reader users
|
|
#5
|
||||
|
||||
|
whoops...here you go
Code:
$query = mysql_query("select id,datetime,headline,body,image from ".$pixelpost_db_prefix."pixelpost where (datetime<='$cdate') order by datetime desc limit 10");
http://blog.blinking8s.com/?x=rss
__________________
i should say more clever stuff |
|
#6
|
|||
|
|||
|
Quote:
io |
| Post Reply |
| Thread Tools | |
|
|