php-db | 2001041
Date: 04/08/01
- Next message: duncan <email protected>: "[PHP-DB] PHP-MySQL - Escaping single quotes"
- Previous message: alarion <email protected>: "[PHP-DB] MS SQL server 2k and php4 on win32"
- In reply to: Naga Sean: "Re: [PHP-DB] Display data begin with "A""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
if you're using MySQL, the simpliest method is using RLIKE
SELECT stuff FROM table WHERE stuff RLIKE '^[0-9]+';
see
http://www.mysql.com/doc/S/t/String_comparison_functions.html
http://www.mysql.com/doc/R/e/Regexp.html
for more info
HTH
Victor
> Okay it's working now..
> How if I want to display all the data begin with NUMBERS. like "1,2,3,...,0"
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: duncan <email protected>: "[PHP-DB] PHP-MySQL - Escaping single quotes"
- Previous message: alarion <email protected>: "[PHP-DB] MS SQL server 2k and php4 on win32"
- In reply to: Naga Sean: "Re: [PHP-DB] Display data begin with "A""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

