CMSF4とても楽しんでます。ありがとうございます。でもPHPははじめてのなのでドキドキしながらですが、思ってたより簡単に使えるのでちょっと安心してたら壁にぶつかりました。
件名のとおりなんですが、2つの一覧を1つのページに表示する方法に戸惑ってます。エラーがでます。
Powered By CMSF4のサイト内で見てるので、出来るはずなんですが…
ページの最上部にこれを入れました…
- コード: 全て選択
- <!--【ステップ1:レコードの読み込み】(以下のコードをページの "最上部" に挿入して下さい。この行は削除して下さい。)この下から -->
 <?php header('Content-type: text/html; charset=utf-8'); ?>
 <?php
 require_once "/○○○/○○○/CMSF/lib/viewer_functions.php";
 list($newsRecords, $newsMetaData) = getRecords(array(
 'tableName' => 'news',
 'limit' => '5',
 ));
 ?>
 <?php header('Content-type: text/html; charset=utf-8'); ?>
 <?php
 require_once "/○○○/○○○/CMSF/lib/viewer_functions.php";
 list($eventRecords, $eventMetaData) = getRecords(array(
 'tableName' => 'event',
 'limit' => '5',
 ));
 ?>
それで、<body>にこれを入れました…
- コード: 全て選択
- <?php foreach ($newsRecords as $record): ?>
 ニュースタイトル: <a href="<?php echo $record['_link'] ?>"><?php echo $record['title'] ?></a><br />
 投稿日付: <?php echo date("Y年m月d日", strtotime($record['date'])) ?><br /><br />
 <?php endforeach ?>
 <?php foreach ($eventRecords as $record): ?>
 イベント情報タイトル: <a href="<?php echo $record['_link'] ?>"><?php echo $record['title'] ?></a><br />
 投稿日付: <?php echo date("Y年m月d日", strtotime($record['date'])) ?><br /><br />
 <?php endforeach ?>
が… 良く分からないエラーになります。これです…
Warning: session_start(): Cannot send session cache limiter...
 
 
 
  
 

