Jump to content

Unexpected $end


DJTim666

Recommended Posts

Here is the code. Like it says in the title I am getting the unexpected $end error near the end of the coding.

 

<?php
include('header.php');
echo"<font color='blue'>Welcome %yourname to the account mananger section, please follow all admin rules before doing anything elligal!<br><br></font>";
echo"<a href='$PHP_SELF'>Home</a> | <a href='$PHP_SELF?act=edit'>Edit-User</a> | Warn | Browse-Users | CheckUser-Logs | FreezeUser | IPBANN<br><br>";

if(!$act) {
echo"This will show how many users you have frozen, edit etc. to be done very soon";
}

/////Start edit user
if($act == 'edit') {

                 if($userinfo[level] <= 0) {
                  showerror("Sorry but you dont have access to this area yet!");
                 }
         
         
                 if(!isset($_POST[e_user])) {
              echo"Enter username to edit.<br>
              <form action='$PHP_SELF?act=edit' method='post'>
              <input type='text' name='e_user'><br>
              <input type='submit' value='Edit User!'><br>
              ";
              }
                if(isset($_POST[e_user])) {
             $e_user = mysql_real_escape_string($_POST[e_user]);
             $sql0 = mysql_query("SELECT * FROM user WHERE username='$e_user'");
             $sql = mysql_fetch_array($sql0);

             //Check to see if user exist
             if(mysql_num_rows($sql0) == 0) {
              showerror("User does not exist!");
              }

              //Shows the edituser input
              echo <<<EDITU
              Username:
              User-Id:
              Password:
              EDITU;
             }
         }
//edit user ends



include('footer.php');
?>

 

--

DJ

Link to comment
https://forums.phpfreaks.com/topic/57195-unexpected-end/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.