setAttribute(PDO::ATTR_EMULATE_PREPARES, false); $stmt = $pdo->prepare("SELECT * FROM `cms_card`"); $stmt->execute(); $cards = $stmt->fetchAll(PDO::FETCH_ASSOC); ?> CMS - Main

40) $title = substr($card["title"], 0, 40) . "..."; else $title = $card["title"]; if (strlen($card["body"]) > 250) $body = substr($card["body"], 0, 250) . "..."; else $body = $card["body"]; $i++; echo "
News $i
$title

$body

Read whole
"; } ?>
Advertisement
By our thing

Out thing is better than those other things

Go somewhere

Edit cards'; ?> Logout