PHP Classes

SuccessMessage and ConditionalErrorMsg printing at the same time

Recommend this page to a friend!

      Database Insert Class  >  All threads  >  SuccessMessage and...  >  (Un) Subscribe thread alerts  
Subject:SuccessMessage and...
Summary:if duplicate record found print both success then error message
Messages:1
Author:Hasan Erhan AYDINOGLU
Date:2013-04-07 06:01:48
 

  1. SuccessMessage and...   Reply   Report abuse  
Picture of Hasan Erhan AYDINOGLU Hasan Erhan AYDINOGLU - 2013-04-07 06:01:48
Hi;

If duplicate record found. The page printing firstly SuccessMessage then printing ConditionalErrorMsg.

I expecting that if duplicate message found only print ConditionalErrorMsg.

This is because InsertPermission setted to False but not work I think.
if (mysql_num_rows(mysql_query($QueryForCheckDuplicate)) == 0) {
$InsertPermission = "True";
}
else {
$InsertPermission = "False";
}