Thank you for replying to my problem so quickly.
My server company sent this as the whole error
The error that is showing in the logs is:
PHP Parse error: parse error, unexpected T_FUNCTION in
/home/sites/site176/web/athletes/newsathlete.php on line 27
Line 27 was where the function started
Since I am new to this function thing. How would I make this function work. I think I need to equal the two variables
$paragraph
$limit
to something like
$paragraph = $row_rsNews['Newsbody']; (being the field from the database.)
$limit = 20;
then I am going to echo either $text; or summarize();
I have read in my wonderful php book that I can take out return and insert echo. Is this true and would this work?
Here is the database pull from the top of the page.
?php require_once('../Connections/criticalspee.php'); ?>
<?php
mysql_select_db($database_criticalspee, $criticalspee);
$query_rsNews = "SELECT * FROM News ORDER BY NewsDate DESC";
$rsNews = mysql_query($query_rsNews, $criticalspee) or die(mysql_error());
$row_rsNews = mysql_fetch_assoc($rsNews);
$totalRows_rsNews = mysql_num_rows($rsNews);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>