note 68533 rejected from function.wordwrap by bjori
| From: | bjori@php.net | Date: | Tue, 01 Aug 2006 09:04:19 +0000 |
| Subject: | note 68533 rejected from function.wordwrap by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115401@lists.php.net to get a copy of this message | ||
Note Submitter: treedguy at msn dot com
----
Any ideas how to put at text limit on 'entry' so it only pulls the first so many
characters like a preview?
$res = db_res("SELECT count(*) as
quantity FROM Blog INNER JOIN
Profiles ON (Blog.owner =
Profiles.ID)");
$quantity = mysql_fetch_array($res);
$blog_res = db_res("SELECT *, count( branch )-1 AS comments
FROM Blog
GROUP BY branch
ORDER BY date, branch ASC
LIMIT {$from}, {$step}");
this is in my php page.......ty