getPosts(2);
$rowIndex = 0;
if (isset($_POST["send"])) {
$form = (object) [
"title" => htmlspecialchars(trim($_POST["post-title"])),
"content" => htmlspecialchars(trim($_POST["post-content"])),
];
$post->getForm($form->title, $form->content);
$post->postUpdate();
if ($post->error == NULL) {
$post->insertPost();
if ($form->title == NULL) {
header("Location: /feed/micros");
} else {
header("Location: /feed/marcos");
}
}
}
?>
= $website->title; ?>: = $website->slogan; ?>
error != NULL) echo "$post->error ";
?>
|
micros
marcos
gallery
|
|
getPosts(2)->rowCount() <= 0)
echo " There are currently no quacks in this section. "; // rare message
foreach ($post->getPosts(2) as $p) {
$rowIndex++;
if ($rowIndex != $post->getPosts(2)->rowCount()) {
echo "
|
|
|