How to display part of a text field record in the browser with PHP?
| From: | Marlene Burckhalter | Date: | Wed, 10 Sep 2003 14:26:37 +0000 |
| Subject: | How to display part of a text field record in the browser with PHP? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-21346@lists.php.net to get a copy of this message | ||
XP - Apache - MySQL - PHP
Can someone give me a hint? Thanks for any help.
I have successfully pulled the text field record from the database, but need some direction about
how to only display part of the text:
$query = "SELECT youth_announce_num, youth_announce_text FROM $youthannounce_tablename
WHERE youth_announce_start >= curdate()
ORDER BY youth_announce_date
LIMIT 7";
$result = mysql_query($query);
while($query_data = mysql_fetch_array($result)) {
$thetext = $query_data["youth_announce_text"];
...omit...
echo "$thetext<BR><BR>";
...omit...
Marlene
eJeb Solutions