case Modify Account : if (isset($_POST[ name ]) and isset($_POST[ email ]) and

case Modify Account : if (isset($_POST[ name ]) and isset($_POST[ email ]) and isset($_POST[ accesslvl ]) and isset($_POST[ userid ])) { $sql = UPDATE cms_users . SET email= . $_POST[ email ] . , name= . $_POST[ name ] . , access_lvl= . $_POST[ accesslvl ] . . WHERE user_id= . $_POST[ userid ]; mysql_query($sql, $conn) or die( Could not update user account; . mysql_error()); } redirect( admin.php ); break; case Send my reminder! : if (isset($_POST[ email ])) { $sql = SELECT passwd FROM cms_users . WHERE email= . $_POST[ email ] . ; $result = mysql_query($sql, $conn) or die( Could not look up password; . mysql_error()); if (mysql_num_rows($result)) { $row = mysql_fetch_array($result); $subject = Comic site password reminder ; $body = Just a reminder, your password for the . Comic Book Appreciation site is: . $row[ passwd ] . nnYou can use this to log in at http:// . $_SERVER[ HTTP_HOST ] . dirname($_SERVER[ PHP_SELF ]) . / ; mail($_POST[ email ], $subject, $body) or die( Could not send reminder email. ); } } redirect( login.php ); break; case Change my info : session_start(); if (isset($_POST[ name ]) and isset($_POST[ email ]) and isset($_SESSION[ user_id ])) { $sql = UPDATE cms_users . SET email= . $_POST[ email ] . 433 Building a Content Management System
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Leave a Reply