had a look at the suggested strcmp() but it only confused me.
😕
Is there a way to do this in the MySQL statement?
I've attached a sample script i threw together to test this.
<?php
include($_SERVER['DOCUMENT_ROOT'].'/includes/dbconnect.php');
$username="djDAZ";
$result = mysql_query("SELECT * FROM users WHERE username='$username'");
if( mysql_num_rows($result) > 0 )
{
$data = mysql_fetch_array($result);
echo $data['email'];
}
?>
Thanks