There are string functions in both PHP and MySQL that will do exactly what
you are wanting. Please read either manual for these. PHP- look up the
string functions. MySQL- read Ch. 7, the section that talks about functions
that can be used in SELECT statements.
----- Original Message -----
From: "Mike Roberts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 22, 2001 9:46
Subject: Easy! Or is it?
> Probably easy, but everything is easy once you know how to do it.
>
> In my database with PHP and MySQL, I have a description field with
> varchar set to 255. But what I want to do is have the database spit
> that out onto a webpage but only showing, say 100 characters.
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php