Jump to content

[SOLVED] "click here to read more"


lilwing

Recommended Posts

just curious.. plesae give me an example of what line 7 would look like

 

$string= results;

$cutoff = strlen($string);

if($cutoff=>500)
{
echo first500chars; //waht would this be?
echo "... <br /><br /> <a href="page.php?storyid=something">Click here to read more</a>
}
else
{
echo $string;
}

Link to comment
https://forums.phpfreaks.com/topic/66166-solved-click-here-to-read-more/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.