Click here to Skip to main content
15,907,913 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

 
GeneralRe: Notifications Pin
Agent__00714-Oct-14 21:38
professionalAgent__00714-Oct-14 21:38 
GeneralRe: Notifications Pin
Agent__00719-Oct-14 17:25
professionalAgent__00719-Oct-14 17:25 
GeneralRe: Notifications Pin
Agent__00726-Oct-14 22:09
professionalAgent__00726-Oct-14 22:09 
AnswerRe: Notifications Pin
Chris Maunder29-Oct-14 9:00
cofounderChris Maunder29-Oct-14 9:00 
GeneralRe: Notifications Pin
Agent__00729-Oct-14 23:00
professionalAgent__00729-Oct-14 23:00 
GeneralRe: Notifications Pin
Agent__00730-Oct-14 19:10
professionalAgent__00730-Oct-14 19:10 
GeneralRe: Notifications Pin
Agent__0074-Nov-14 16:02
professionalAgent__0074-Nov-14 16:02 
GeneralRe: Notifications Pin
Chris Maunder4-Nov-14 18:36
cofounderChris Maunder4-Nov-14 18:36 
GeneralRe: Notifications Pin
Agent__0072-Dec-14 17:39
professionalAgent__0072-Dec-14 17:39 
GeneralRe: Notifications Pin
Agent__00710-Dec-14 23:15
professionalAgent__00710-Dec-14 23:15 
GeneralRe: Notifications Pin
Agent__0076-Jan-15 0:14
professionalAgent__0076-Jan-15 0:14 
QuestionNewsletter mail Pin
nicofari8-Oct-14 4:57
nicofari8-Oct-14 4:57 
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 

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

Flags: FixedAnsweredRejected

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