www.webdeveloper.com
Results 1 to 3 of 3

Thread: forgot password help

  1. #1
    Join Date
    Apr 2012
    Posts
    35

    forgot password help

    In my login.php file I got a forgot password text field as well so the user can put their email address in and have a email sent containing their password

    But am getting the following error and have no idea why

    Login Failed. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' WHERE 'username' ='.'' at line 1

    Any ideas

    Thank you in advance

    Ian

  2. #2
    Join Date
    Feb 2011
    Posts
    231
    Hi,
    Try delete the single quotes from 'username' in sql query.
    If not works, post that piece of code.

  3. #3
    Join Date
    Aug 2011
    Posts
    12
    yea single quotes have to go from around username change it instead to backticks like this `username`

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles