Making Blog With Part Count Text

Started on the old forum in March 2009 · view the original in the archive · old links redirect here

5 replies · 429 views · started 17 years ago · 1 min read

2 participants
SiLeNce Developer · 138 posts #1

Hello

I try to make the part if text length up to 200 or more words

Example

[Part 1 = Title ] Grandma, you’re a blessing. In so many ways, this family depends on your strength to hold us together. Because your generosity and love come naturally, ..... [Go To Part 2]

if page 2

[Part 2 = Title 2 ] you don’t like to receive much attention for all the good that you do. Still, too often your sacrifices go unnoticed. Wishing you all the blessings. ..... [Go To Part 3]

i try to make this func like ..

if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT text, COUNT(*) FROM ibwf_blogs WHERE id='".$bid."'")); $cnt = strlen($noi[0]);

if($cnt>100){ $num_items = 100; }else{ $num_items = $noi[1]; }

$items_per_page= 1; $num_pages = ceil($num_items/$items_per_page); if($page>$num_pages)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; if($limit_start<0)$limit_start=0;

$sql = "SELECT uid, title, text, date, views FROM ibwf_blogs WHERE id='".$bid."' LIMIT $limit_start, $items_per_page";

Please kind help me ~

subzero Super moderator Fellow · 3,954 posts #2

edit sql if you want more words set text 200 or 600,

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #4

and you want it to auto page ??

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

SiLeNce Developer · 138 posts #5

yup ..

i think use strlen func ..

subzero Super moderator Fellow · 3,954 posts #6

Get that code in the script pmpl its all over your and you dont know it lmao

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close