richarro1234 Posted September 15, 2007 Share Posted September 15, 2007 Hey all, Just wondering. How do i make a query so that data is pulled out of a mysql database and on the page it only shows the first few lines of an article, like say 2 or 3 lines, then there is a "more.." link that you can click that will load up a new page and show the rest of the article? How do i go about doin that? Thanks Rich Quote Link to comment https://forums.phpfreaks.com/topic/69496-solved-how-do-i/ Share on other sites More sharing options...
rarebit Posted September 15, 2007 Share Posted September 15, 2007 Use substr($txt, 0, 100) as a teaser, do a link as usual! Quote Link to comment https://forums.phpfreaks.com/topic/69496-solved-how-do-i/#findComment-349195 Share on other sites More sharing options...
richarro1234 Posted September 15, 2007 Author Share Posted September 15, 2007 Sweet, Thanks for the speedy reply rarebit . Thanks Rich Quote Link to comment https://forums.phpfreaks.com/topic/69496-solved-how-do-i/#findComment-349200 Share on other sites More sharing options...
rarebit Posted September 15, 2007 Share Posted September 15, 2007 Just watching tv but nowt on! yawn... Quote Link to comment https://forums.phpfreaks.com/topic/69496-solved-how-do-i/#findComment-349203 Share on other sites More sharing options...
richarro1234 Posted September 15, 2007 Author Share Posted September 15, 2007 yeah, i no the story. always nowt on this time of day. Quote Link to comment https://forums.phpfreaks.com/topic/69496-solved-how-do-i/#findComment-349218 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.