reading messages
This commit is contained in:
parent
08fe66906c
commit
f44c90647f
4 changed files with 21 additions and 2 deletions
|
@ -12,7 +12,15 @@ function page_header()
|
|||
]);
|
||||
|
||||
$posts2 = $stmt->fetchAll(PDO::FETCH_DEFAULT);
|
||||
$edge = count($posts2);
|
||||
|
||||
$stmt = $db->prepare("SELECT * FROM main.read WHERE username = ?");
|
||||
$stmt->execute([
|
||||
$username
|
||||
]);
|
||||
|
||||
$counter = $stmt->fetchAll(PDO::FETCH_DEFAULT);
|
||||
|
||||
$edge = count($posts2) - $counter[0]['msgs'];
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue