|
|
|
if($result=mysql_fetch_array($sqlAbout))
{
//$subString=substr($result['TB_ABT_CONTENT'],0,350);// display a portion of the string from the about us content
$string=$result['TB_ABT_CONTENT'];
$token=explode(" ",$string);
$totalWords=count($token);
if($token[40]=="")
{
$subString = $string;
}
else
{
$pos=strpos($string,$token[40]);
$subString = substr($string,0,$pos);
}
echo $subString;
} ?>
|
|
More >> |
|
|
|
|
if($des=mysql_fetch_array($sqlService))
{
$string1=$des['TB_SERV_CONTENT'];
$token1=explode(" ",$string1);
$totalWords1=count($token1);
if($token[30]=="")
{
$subString1 = $string1;
}
else
{
$pos1=strpos($string1,$token1[30]);
$subString1 = substr($string1,0,$pos1);
}
echo $subString1;
}?>
|
|
|
More >> |