ltoto Posted November 3, 2006 Share Posted November 3, 2006 basically just wondering whats wrong with this<?phpsubstr($row_rsGolf['pagesContent'], 0, 300);?>and why it is not working, its not showing up and error though... Quote Link to comment https://forums.phpfreaks.com/topic/26033-substr-help/ Share on other sites More sharing options...
.josh Posted November 3, 2006 Share Posted November 3, 2006 try <?phpecho substr($row_rsGolf['pagesContent'], 0, 300);?>if that doesn't work, try echoing the variable itself, as it probably doesn't hold what you expect it to be holding. Quote Link to comment https://forums.phpfreaks.com/topic/26033-substr-help/#findComment-119007 Share on other sites More sharing options...
ltoto Posted November 3, 2006 Author Share Posted November 3, 2006 ahhh that works, but how do i strip tags on it Quote Link to comment https://forums.phpfreaks.com/topic/26033-substr-help/#findComment-119012 Share on other sites More sharing options...
.josh Posted November 3, 2006 Share Posted November 3, 2006 try looking at [url=http://www.php.net/strip_tags]strip_tags[/url]. If that is not what you are looking for, then try being more specific. For starters, it would help if you mentioned what your variable is supposed to be holding and what the goal here is - like a "before" and "after" example. Quote Link to comment https://forums.phpfreaks.com/topic/26033-substr-help/#findComment-119019 Share on other sites More sharing options...
ltoto Posted November 3, 2006 Author Share Posted November 3, 2006 i used strip_tags, it worked fine, but it cuts the text with a picture, so the picture doesnt show, which is what I want, but it also takes the text characters down more then it should Quote Link to comment https://forums.phpfreaks.com/topic/26033-substr-help/#findComment-119020 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.