Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> strtolower(cos)
menic
post
Post #1





Grupa: Zarejestrowani
Postów: 493
Pomógł: 0
Dołączył: 14.06.2003
Skąd: Tomaszów Lubelski/Rzeszów

Ostrzeżenie: (0%)
-----


Jak zrobić aby pobierał dane z Mysql zapisane małymi literami. Wyglądałoby by to tak
[sql:1:f12e19f701]mysql_query( "SELECT bla FROM tabela WHERE strtolower(cos) = cos1" );[/sql:1:f12e19f701]
Oczywiście ten przykład nie działa ale chodziło mi o ukazanie problemu smile.gif


--------------------
Jak masz cos zrobic dobrze...
...To musisz zrobić to sam.

Uchwycić moment...
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
scanner
post
Post #2





Grupa: Zarząd
Postów: 3 503
Pomógł: 28
Dołączył: 17.10.2002
Skąd: Wrocław




Cytat
LCASE(str)
LOWER(str)
Returns the string str with all characters changed to lowercase according to the current character set mapping (the default is ISO-8859-1 Latin1):
mysql> SELECT LCASE('QUADRATICALLY');
-> 'quadratically'
This function is multi-byte safe.
UCASE(str)
UPPER(str)
Returns the string str with all characters changed to uppercase according to the current character set mapping (the default is ISO-8859-1 Latin1):
http://www.mysql.com/doc/en/String_functions.html


--------------------
scanner.info
Warto pamiętać: KISS, DRY
Go to the top of the page
+Quote Post

Posty w temacie
- menic   strtolower(cos)   7.08.2003, 13:43:00
- - scanner   CytatLCASE(str) LOWER(str) Returns the string st...   7.08.2003, 13:47:53


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 10:00