View Single Post
Old 10-28-2004, 02:10 PM   #1 (permalink)
DavH27
PHP Pilgrim
 
DavH27's Avatar
 
Join Date: Aug 2004
Location: London
Posts: 170
DavH27 is on a distinguished road
Case sensitivity

PHP Code:
<?php

$email 
"DavH";

if (
$email == "davh")
 {
 echo 
"Match";
 }
else
 {
 echo 
"No Match!";
 }

?>
This is a simplified version of what I'm doing. I'm actually comparing an entry in a db with a GET variable but I wanna know why it is returning "No Match"?!!

It matches, surely? How can I compare them regardless of thier case?
__________________
Davy - Programming since 1998 [CV]
Currently working on: n/a
Status: n/a
DavH27 is offline   Reply With Quote