Click here to Skip to main content
15,887,746 members

Bugs and Suggestions

   

General discussions, site bug reports and suggestions about the site.

For general questions check out the CodeProject FAQs. To report spam and abuse Head to the Spam and abuse watch. If you wish to report a bug privately, especially those related to security, please email webmaster@codeproject.com

 
AnswerRe: Newsletter mail Pin
aksen3038-Oct-14 13:05
aksen3038-Oct-14 13:05 
AnswerRe: Newsletter mail Pin
Chris Maunder8-Oct-14 15:45
cofounderChris Maunder8-Oct-14 15:45 
GeneralRe: Newsletter mail Pin
nicofari10-Oct-14 0:17
nicofari10-Oct-14 0:17 
GeneralRe: Newsletter mail Pin
Chris Maunder13-Oct-14 11:05
cofounderChris Maunder13-Oct-14 11:05 
QuestionFalse article download link. Pin
enhzflep8-Oct-14 4:37
enhzflep8-Oct-14 4:37 
AnswerRe: False article download link. Pin
Chris Maunder8-Oct-14 4:50
cofounderChris Maunder8-Oct-14 4:50 
GeneralRe: False article download link. Pin
enhzflep8-Oct-14 4:54
enhzflep8-Oct-14 4:54 
BugC++ MFC Dialog Login Error Pin
WinterC7-Oct-14 20:13
WinterC7-Oct-14 20:13 
Here is my code for my login dialog application. there is this error whereby any username and password will allow user to login. i link it with mysql database but its not checking for the user and just login with unexisting users. please help me solve this i don know where i go wrong or lack of anything else? thank you!


C#
void CPeopleCounterDlg::OnBnClickedbtnlogin()
{
    UpdateData();
    bool ValidLogin = false;

    if( m_Username == "" )
    {
        AfxMessageBox("You must provide a username to Login.");
        m_EditUsername.SetFocus();

        return;
    }
    if( m_Password == "" )
    {
        AfxMessageBox("Please enter your password.");
        m_EditPassword.SetFocus();
        return;
    }
            //SQL查询语句
        if(mysql_query( ssock,"SELECT * FROM user WHERE Username == \"m_Username\" AND Password == \"m_Password\" "))
        {
            ValidLogin = true;
            CPplCMain  m_pplc;
            m_pplc.DoModal();
            this->ShowWindow(SW_HIDE);
            this->ShowWindow(SW_SHOW);
        }
        if(ValidLogin = false){
            MessageBox("Invalid login!");
        }
        if( !(res = mysql_store_result(ssock)) )
    {
        MessageBox("Disconnected!", mysql_error(ssock));
    }
    UpdateData(FALSE);
    mysql_close(ssock);
}

GeneralRe: C++ MFC Dialog Login Error Pin
Simon_Whale7-Oct-14 22:13
Simon_Whale7-Oct-14 22:13 
JokeRe: C++ MFC Dialog Login Error Pin
Nish Nishant8-Oct-14 3:08
sitebuilderNish Nishant8-Oct-14 3:08 
GeneralRe: C++ MFC Dialog Login Error Pin
Chris Maunder8-Oct-14 3:10
cofounderChris Maunder8-Oct-14 3:10 
GeneralRe: C++ MFC Dialog Login Error Pin
Thanks78728-Oct-14 3:16
professionalThanks78728-Oct-14 3:16 
SuggestionRegarding Unwanted UI revisions by any other members Pin
Anandhi Swamy7-Oct-14 10:19
Anandhi Swamy7-Oct-14 10:19 
GeneralRe: Regarding Unwanted UI revisions by any other members Pin
Chris Maunder7-Oct-14 10:28
cofounderChris Maunder7-Oct-14 10:28 
GeneralRe: Regarding Unwanted UI revisions by any other members Pin
Pete O'Hanlon7-Oct-14 10:48
mvePete O'Hanlon7-Oct-14 10:48 
GeneralRe: Regarding Unwanted UI revisions by any other members Pin
Nelek8-Oct-14 14:58
protectorNelek8-Oct-14 14:58 
GeneralRe: Regarding Unwanted UI revisions by any other members Pin
Agent__0079-Oct-14 0:51
professionalAgent__0079-Oct-14 0:51 
SuggestionArticle Editor wrap in <code>MyClass</code> button Pin
Daniel Vaughan7-Oct-14 7:27
Daniel Vaughan7-Oct-14 7:27 
GeneralRe: Article Editor wrap in <code>MyClass</code> button Pin
Brisingr Aerowing7-Oct-14 7:56
professionalBrisingr Aerowing7-Oct-14 7:56 
GeneralRe: Article Editor wrap in <code>MyClass</code> button Pin
Daniel Vaughan7-Oct-14 12:40
Daniel Vaughan7-Oct-14 12:40 
AnswerRe: Article Editor wrap in <code>MyClass</code> button Pin
Kornfeld Eliyahu Peter7-Oct-14 8:14
professionalKornfeld Eliyahu Peter7-Oct-14 8:14 
GeneralRe: Article Editor wrap in <code>MyClass</code> button Pin
Daniel Vaughan7-Oct-14 12:41
Daniel Vaughan7-Oct-14 12:41 
BugWeb Development layout broken Pin
Richard Deeming7-Oct-14 1:33
mveRichard Deeming7-Oct-14 1:33 
SuggestionIs this normal behavior? Pin
vbmike6-Oct-14 9:19
vbmike6-Oct-14 9:19 
GeneralRe: Is this normal behavior? Pin
Chris Maunder6-Oct-14 9:21
cofounderChris Maunder6-Oct-14 9:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Flags: AnsweredRejectedFixed

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.