Snooble Posted October 9, 2007 Share Posted October 9, 2007 substr($col_value[0], 0, 10) . "...<a href='/idcomment.php'>(More)</a> It's only showing the first charactor. Then "... (More)". So output = T...(More) why? what have i done wrong.... if i echo out the $col_value i get a huge statement... "The time it took ..." Thanks Snoobs Link to comment https://forums.phpfreaks.com/topic/72541-solved-whats-wrong-with-this-small-bit-of-code/ Share on other sites More sharing options...
sasa Posted October 9, 2007 Share Posted October 9, 2007 if $col_value is string that $col_value[0] is just 1st caracter of it try substr($col_value, 0, 10) . "...<a href='/idcomment.php'>(More)</a> Link to comment https://forums.phpfreaks.com/topic/72541-solved-whats-wrong-with-this-small-bit-of-code/#findComment-365777 Share on other sites More sharing options...
Snooble Posted October 9, 2007 Author Share Posted October 9, 2007 you my sir, are a genious... Thank you! Link to comment https://forums.phpfreaks.com/topic/72541-solved-whats-wrong-with-this-small-bit-of-code/#findComment-365778 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.