Re: MySQL substrings?

From: Date: Sun, 19 Aug 2001 16:42:18 +0000
Subject: Re: MySQL substrings?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63407@lists.php.net to get a copy of this message
It'd help if you have us the mysql_error() returned. Try the following: SELECT *, substring_date AS SUBSTRING(date,5,2) FROM $table ORDER BY substring_date /* Chris Lambert, CTO - chris@whitecrown.net WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ ----- Original Message ----- From: Seb Frost <seb@raceshoot.com> To: Tom Carter <subs@roundcorners.com>; <php-general@lists.php.net> Sent: Sunday, August 19, 2001 11:19 AM Subject: RE: [PHP] MySQL substrings? | This doesn't work: | | $result = mysql_query("SELECT * FROM $table ORDER BY SUBSTRING(date,5,2)") | | Any idea why? | | - seb | | -- | 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 | | |

« previous php.general (#63407) next »