本文整理汇总了PHP中Story::getStorySubmitter方法的典型用法代码示例。如果您正苦于以下问题:PHP Story::getStorySubmitter方法的具体用法?PHP Story::getStorySubmitter怎么用?PHP Story::getStorySubmitter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Story
的用法示例。
在下文中一共展示了Story::getStorySubmitter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Database
<?php
include 'includes/header.php';
$id = $_GET['id'];
$db = new Database();
$st = new Story();
$story = $db->select($st->getStoryById($id))->fetch_assoc();
$categories = $db->select($st->getStoryCategories());
$submitter = $db->select($st->getStorySubmitter($story))->fetch_assoc();
?>
<div class="container">
<div class="header">
<h1 class="title">Stories</h1>
<p class="lead description">The Hansen farm and stories of its people</p>
</div>
<ol class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li><a href="stories.php">Stories</a></li>
<li class="active"><?php
echo $story['Title'];
?>
</li>
</ol>
<div class="row">
<div class="col-sm-9 story-main">
<div class="story">
<h2 class="story-post-title"><?php
echo $story['Title'];