Jump to content

be@rbrick

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

be@rbrick's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Dear all, Simply i have a small problem but a big headache actually to solve as for me. Here is the situation. 1st - to connect to the database - done. 2nd - to loop the data on descending order - done. 3rd - To display the data from the database - done. 4th - to limit the data display - not done, headache. - the data that i call from my database is description on something which have more than 200-300 words. [u]so i only want to display the first 50 - 70 words out of that on my page.[/u] i do surfin, read the tutorials n try, but in the end there is nothing works. my bad. here is the example that run on asp. <%=left(rsNews("newsContent"), 200)%> but i need it badly on php. [b]so here is my basically code for a meantime[/b] : <?php if (!empty($row_last_3['name']) and !empty($row_last_3['link'])){ ?> <?php echo $row_last_3['name']; ?><br> <?php echo $row_last_3['comments'];?> which is "comments" represent the description that i mention. [b]n here is the output. [/b] XXXXXX Take a trip back to the past by visiting XXXXXX. Brace yourself for an interesting and educational journey into XXXXXX colourful and vibrant culture, history and national history within the walls of XXXXX. Your visit will leave you mesmerized with the vibrant and colourful history and culture of XXXXX. thanx you.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.