SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 29 of 29
  1. #26
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    71 Post(s)
    Tagged
    0 Thread(s)
    So your function takes into account things like Mc, Mac, St, Van der, Von, etc? There's a lot of possible combinations out there to try and code for. But if thats your choice, go for it.

  2. #27
    Non-Member Kalon's Avatar
    Join Date
    Aug 2010
    Location
    At my computer
    Posts
    2,012
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I didn't write the function, but it's served me well up till now

  3. #28
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks for coming back to me Kalon.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  4. #29
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sketchgal View Post
    What I have is a form which the user enters a code and the script check the db to see if it exists and then directs the user to a page. That part works fine but only if the user enters the code exactly as its stored in the db.
    for example if the code is WY09VGM in the db then thats exactly what the user has to enter. If they enter WY09 VGM its not picked up same goes for wy09vgm.
    Guys, I don't know if this discussion was because of my wrong solution. And I have to apologize if my solution is directing OP to somewhere wrong way.

    But please note what OP has said that he is trying to match a code which I thought for some kind of verifications/confirmation (like sign up confirmation or so) because his example codes seem random codes. For that particular case, I normally do in that way like storing codes all in uppercase and check user entered codes are all in upper case or not in PHP itself. But I don't check against database for case check. I have never stored other user data like names, surnames, etc. in any lower/upper case and neither I suggest anyone to do that. I just store how they enter.

    Hope it is clear why/how I suggested the way.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •