php - Unsure of what code Error is -


i have been working on code change someone's password in database (such if forgot code) using variables database such secret code.

whenever attempt run function error: parse error: syntax error, unexpected end of file in c:\xampp\htdocs\physicsproject\resetpasswordconnection.php on line 70.

here code causing error:

   <?php include ('inc/header.php');   $userusername1 = $_post['userusername']; $userchangepassword = md5($_post['userchangepassword']); $userchangepasswordconfirm = md5($_post['userchangepasswordconfirm']); $usersecretcode = md5($_post['usersecretcode']); $sql4 = "select * userinformation user_username = '" . $userusername1 . "'";  $data2 = mysql_query($sql4, $cn) or   die (mysql_error($cn)); $rowpw = mysql_num_rows($data2); $row1214 = mysql_fetch_assoc($data2); $dbuname = $row1214['user_username']; $dbcode = $row1214['user_code'];    if ($userusername1 == $dbuname){     if ($usersecretcode == $dbcode){         if ($rowpw == 1){         if ($userchangepassword != $userchangepasswordconfirm){?>           <div class = "container" id = "bodycontainervideo">             <div class = "row">               <div class = "col-md-12">                 <h1 class = "main-title">your new passwords not match.</h1>               </div>             </div>           </div>         </body>       </html><?php    } else {       $sql5 = "update userinformation set user_password = '" . $userchangepassword . "' user_username = '" . $userusername1 . "'";           $result5 = mysql_query($sql7, $cn) or           die(mysql_error($cn));?>     <div class = "container" id = "bodycontainervideo">       <div class = "row">         <div class = "col-md-12">           <h1 class = "main-title">your password has been sucessfully been changed</h1>         </div>       </div>     </div>   </body> </html> <?php       }     } else {?>     <div class = "container" id = "bodycontainervideo">       <div class = "row">         <div class = "col-md-12">           <h1 class = "main-title">the code put in incorrect</h1>         </div>       </div>     </div>   </body> </html>     <?php}   } else {?>     <div class = "container" id = "bodycontainervideo">       <div class = "row">         <div class = "col-md-12">           <h1 class = "main-title">username not exist.</h1>         </div>       </div>     </div>   </body> </html>     <?php }   }  include ('inc/footer.php'); ?> 

can please me?

change (should line 58):

<?php} 

to (you need 1 space min.):

<?php  //this works <?php } not <?php} } 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -