How to display part of a text field record in the browser with PHP?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux