show user account in php crud -
i'm building php/sql crud.
sql query select: user = user id not working... sql statement use show users account info?
$stmt = $pdo->prepare($sql); $stmt->execute(); $users = $stmt->fetchall(pdo::fetch_assoc); foreach ($users $user) { echo '<tr>'; echo '<td>'; echo $user['id']; echo '</td>'; echo '<td>'; echo $user['username']; echo '</td>'; echo '<td>'; echo '<a href="detail.php?id='; echo $user['id']; echo '">'; echo 'detail'; echo '</a> '; echo '<a href="bewerk.php?id='; echo $user['id']; echo '">'; echo 'bewerk'; echo '</a> '; echo '<a href="delete.php?id='; echo $user['id']; echo '">'; echo 'delete'; echo '</a>'; echo '</td>'; echo '</tr>'; } ?>
Comments
Post a Comment