verification

    Date: 10/14/05 (PHP Community)    Keywords: mysql, sql

    I'm trying to do something like:

    //Part of code
    $data = mysql_fetch_array($result);
            if($data['userName']==$userName) {
                    echo "This user name already exists!
    Go back and try another one.";
                    exit;
    

    So, as you may guess, I need the script to verify if the user with such userName already exists. If not - proceed with the registration.
    Unfortunately, it seems to say that there's already one such account even if some part of the inputted user name coincide, and I need the rejection of newly entered name only if it's the same as existing one on 100%, not partially.
    Does someone know how could this be managed?

    Source: http://www.livejournal.com/community/php/355113.html

« sorting archives by month || GD Library »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home