Making Blog With Part Count Text

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Making Blog With Part Count Text

    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=&#39;".$bid."&#39;"));
    $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=&#39;".$bid."&#39; LIMIT $limit_start, $items_per_page";


    Please kind help me ~

    #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...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      no ..

      i want make part like

      http://pinoy9.net/wap/

      see the blog with part if text more to 200 >

      Comment


        #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...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          yup ..

          i think use strlen func ..

          Comment


            #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...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment

            Working...
            X