Jump to content

[SOLVED] Username Problem


ballouta

Recommended Posts

Hello

 

a user has chosen his username while registration as: MaLeK

This username is stored as is correctly in the DB table.

 

When i query the table and search for username: 'malek' (small letters), the query returns a result and if I echo it it is: MaLeK !

 

I want this query when searching for usernames to be case sensitive.

my code is:

<?php
$query = "SELECT * FROM `members` WHERE `user` = 'malek' ";
?>

Please help

Link to comment
https://forums.phpfreaks.com/topic/124046-solved-username-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.