RE: [PHP] Quick Help
| From: | Mark Peoples | Date: | Wed, 01 Nov 2000 06:00:40 +0000 |
| Subject: | RE: [PHP] Quick Help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-23099@lists.php.net to get a copy of this message | ||
I think it's something like:
SELECT LEFT(col1,3) AS col1 ... ;
marco
-----Original Message-----
From: Curtis, Lorenzo [mailto:Lorenzo.Curtis@prexar.com]
Sent: Tuesday, October 31, 2000 8:04 PM
To: PHP General Help (E-mail)
Subject: [PHP] Quick Help
Can anyone tell me how to read the first three characters (numbers) of a
variable?
I want to read only the first three numbers from a string of numbers all
saved in a mySQL text field
with no delimiters.
-Lorenzo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net