SkyD Posted November 20, 2006 Report Share Posted November 20, 2006 Lieta tāda. Man iekš db lietotaajvaarda laukaa ir piemēram vārds "Saule". Rakstot regjistraacijas formas laukaa piem. saule, man vinjsh nepasaka, ka taads lietotaajvaards ir. kapeec taa? Tas kautkaa neder, jo savaadaak var regjistreet tur daudz bezmazvai vienaadus lietotaajvaardus, nomainot tikai burtu lielu. Link to comment Share on other sites More sharing options...
andrisp Posted November 20, 2006 Report Share Posted November 20, 2006 (edited) Viens variants ir samazināt salīdzinamos stringus. - http://dev.mysql.com/doc/refman/5.0/en/string-functions.html (CTRL-F 'lower'), - http://lv2.php.net/manual/en/function.strtolower.php Edited November 20, 2006 by andrisp Link to comment Share on other sites More sharing options...
Stopp Posted November 20, 2006 Report Share Posted November 20, 2006 if(strtolower($ievaditais_vards)==strtolower($esosais_vards)) echo "aizņemts lietotājvārds"; Link to comment Share on other sites More sharing options...
Recommended Posts