Hi,
I have a code which returns an error message however I am trying add a 'tag' to it.
I am trying to add a 'tag' so that I can place the error message in a certain place on the page.Code:$query = mysql_query("SELECT * FROM users WHERE email = '". $registerEmail ."' OR email = '". $email ."'"); if (mysql_num_rows($query) > 0) { echo 'Email Address is Already In Use. Please Retrieve Your Password.'; }
Im trying to add a tag "emailduplicate" so that I can echo the error message in a DIV.Code:$query = mysql_query("SELECT * FROM users WHERE email = '". $registerEmail ."' OR email = '". $email ."'"); if (mysql_num_rows($query) > 0) { $success['emailduplicate'] = 'Email Address is Already In Use. Please Retrieve Your Password.'; }
Can anyone advise how I do this?Code:<div class="registerinputerrors"> <?php if($errors['emailduplicate']) print '<div class="invalid">' . $errors['emailduplicate'] . '</div>'; ?> </div>



Reply With Quote



Bookmarks