<?php require_once 'classes/connection.class.php'; require_once 'classes/user.class.php'; $viewobj = new User(); $views = $viewobj->viewUser(); /*echo '<pre>'; print_r($views); echo '</pre>';*/ ?> <table class="table" border="1"> <tbody> <tr> <th scope="row"><strong>userID</strong></th> <th> <strong>Full Name</strong></th> <th ><strong>Username</strong></th> <th ><strong>Password</strong></th> <th ><strong>Check Password</strong></th> <th><strong>Address</strong></th> <th ><strong>Contact Number</strong></th> <th ><strong>Email</strong></th> <th><strong>Action</strong></th> </tr> <?php if (sizeof($views > 0)) {
<?php include 'classes/connection.class.php'; include 'classes/user.class.php'; $user_id = isset($_GET['user_id']) ? (int) $_GET['user_id'] : ''; $objUser = new User(); $objUser->setUserID($user_id); $views = $objUser->viewUser(); foreach ($views as $value) { ?> <form name="form1" method="post" action="process/process_update_user.php"> <table width="669" border="1"> <tbody> <tr> <th colspan="2" scope="row">Please Edit User</th> </tr> <tr> <th scope="row">Username</th> <td> <input name="username" type="text" id="username" value="<?php echo $value['username']; ?> " placeholder="username"></td> </tr> <tr> <th scope="row">Password</th> <td> <input name="password" type="password" required="required" id="password" value="<?php echo $value['password']; ?> " placeholder="password"></td>