SunQuest
           Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old March 13th, 2004, 11:44 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Displaying a page (limit)


Hi i'm abit new to this but ive come across a problem that i can't seem to figure out and thats why i'm posting this.

I have a site with many pages etc. Some pages literally break my tables because there is so much text displaying etc.

How can i limit the amount of text that is displaying and then show a link to see the other parts of it?

I have seen a few navigation systems around here but what i don't understand is that i have one field called "text" ( this is where the article is ) so i can't say row limit = 5 or something can i?

I hope someone can clear this up for me as i'm quite stumped.

Cheers.

Reply With Quote
  #2  
Old March 14th, 2004, 09:54 AM
zareef zareef is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ghaziabad,Uttar Pardesh, India
Posts: 55 zareef User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via Yahoo to zareef
RE: Displaying a page (limit)

Some Hints to you

check the refrences for
following functions
substr();
explode();
implode();
count();
see if you can use these fuctions to your use.

an overview
php Code:
Original - php Code
  1.  
  2. $start=$_GET['start'];
  3. $length=500;
  4. substr($text, $start, $length);
  5.  
  6. or
  7. $array_text=explode($text," ");
  8. // then you can use
  9. $array_to_show=array_slice()
  10.  
  11. $text_to_show=implode(" ", $array_to_show);
  12.  
  13. //this is not complete , but I think you can get a broad picture of script.
  14.  

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Displaying a page (limit)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway