How to validate user name and password with case sensitiveness in php?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • learn.2005@gmail.com

    #1

    How to validate user name and password with case sensitiveness in php?

    Hello Friends!
    I am Manu Gupta, an IT Engineering student, learning PHP presently. I
    want to match user name and pwd from MySQL, it shows case
    insensitiveness . Can anybody help me in implementing case sensitiveness
    in either PHP or MySQL?
    Thanks in advance

  • Sjoerd

    #2
    Re: How to validate user name and password with case sensitiveness in php?

    What do you have so far? Can you show some code?

    Comment

    • samudasu

      #3
      Re: How to validate user name and password with case sensitiveness in php?

      When you create your mysql table, set the data type attibutes for
      username and password columns to binary.

      create table login ( uname VARCHAR(8) BINARY, ... ...)

      Comment

      • Jerry Stuckle

        #4
        Re: How to validate user name and password with case sensitivenessin php?

        learn.2005@gmai l.com wrote:[color=blue]
        > Hello Friends!
        > I am Manu Gupta, an IT Engineering student, learning PHP presently. I
        > want to match user name and pwd from MySQL, it shows case
        > insensitiveness . Can anybody help me in implementing case sensitiveness
        > in either PHP or MySQL?
        > Thanks in advance
        >[/color]

        http://dev.mysql.com/doc/refman/5.1/...nsitivity.html

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        Working...