![]() |
|
| |||||||
| Notices |
| mySQL & PHP Discussions, information and help with mySQL and PHP. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| Hello i have part of a PHP code that prints on the screen something from my DATABASE echo $row['posting_discription']; i wanted to know if i can add something to this line of code to make the posting discription (usualy more then 20 words) to show only 4-6 words and "..." after and it will show as a link to another page(or even the same one) with the full posting ( like in www.craigslist.com) thanks alot |
|
#3
| ||||
| ||||
| The easier way is to cut it off after a character limit, to do that do something like.. PHP Code: As far as formatting the color, you just add html to the strings... like PHP Code:
__________________ Register/Login Script Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |