2016-03-25 13 views
0

私はページ上のコメントボックスを表示するには、PHPのコードを使用しようとしていますで結果を投げている含めますそれは(ない完全なコード)私はそれを使用しようとしています。ここで、iは、私はそれがここに?したい場所を正確にそれを表示させることができますどのような方法があるがあり、ヘッダにコメントボックスを投げ続ける:は、PHPは、ヘッダ

<!--<h1 align="center" style="font-size:1.2em"><strong>'.$row['title'].'</strong></h1>--> 

          <div class="song-art"><a href="'.$this->url.'/mp3download/'.$row['id'].'/'.$this->genSlug($row['title']).'.html"><img src="'.$this->url.'/thumb.php?src='.$row['art'].'&t=m&w=112&h=112" id="song-art'.$row['id'].'" title="'.$row['title'].'" alt="'.$row['title'].'"/></a></div> 
          <div class="song-top"> 
           <div class="song-timeago"> 
             <a href="'.$this->url.'/mp3download/'.$row['id'].'/'.$this->genSlug($row['title']).'.html"><span id="time'.$row['id'].'"> 
              <div class="timeago'.$b.'" title="'.$time.'"> 
               '.$time.' 
              </div> 
             </span> 
            </a> 
           </div> 
           <div data-track-name="'.$row['name'].'" data-track-id="'.$row['id'].'" id="play'.$row['id'].'" class="track song-play-btn"> 
           </div> 
           <div class="song-titles"> 
            <div class="song-author"><a onmouseover="profileCard('.$row['idu'].', '.$row['id'].', 0, 0);" onmouseout="profileCard(0, 0, 0, 1);" onclick="profileCard(0, 0, 1, 1);" href="'.$this->url.'/index.php?a=profile&u='.$row['username'].'">'.realName($row['username'], $row['first_name'], $row['last_name']).'</a></div> 
            <div class="song-tag"> 
            <a href="'.$this->url.'/index.php?a=explore&filter='.$tag.'">'.$tag.'</a> 
            </div> 
            <div class="song-title"> 
    <div class="track-link"><h2 style="font-size:1.0em"> 
    <!--<a href="'.$this->url.'/mp3download/'.$row['id'].'/'.$this->genSlug($row['title']).'.html" id="song-url'.$row['id'].'"><div id="song-name'.$row['id'].'">'.$row['title'].'</div></a>--> 
    </h2></div> 
            </div> 
           </div> 
          </div> 
          <div class="player-controls"> 
           <div id="song-controls'.$row['id'].'"> 
            <div id="jp_container_123" class="jp-audio"> 
             <div class="jp-type-single"> 
               <div class="jp-gui jp-interface"> 
                <div class="jp-progress"> 
                 <div class="jp-seek-bar"> 
                 <div class="jp-play-bar"></div> 
                </div> 
               </div> 
              </div> 
             </div> 
            </div> 
           </div> 
          </div> 

          <div class="track-actions-container">               

          </div> 
           '.$extra_links.' 
           '.$seo_links.' 

          '.$comment.' 

          '.$charts.' 
         </div>'; 


$object_id = 'article_12'; 
include('commentanything/php/loadComments.php');  



        $start = (isset($row['extra_id'])) ? $row['extra_id'] : $row['id']; 
       } 
      } 

I '$ charts。'の直後に表示しようとしています。しかし、それはヘッダーに表示され続ける

答えて

0

あなたはindexとloadComments.phpのHTMLと一致するようには働いていないようです。

最初に、あなたのloadComments.phpコードをinclude( 'commentanything/php/loadComments.php');の代わりにコピーします。

とhtml/cssエラーを確認してください。それはそこにあります。

もしそれが失敗したとしても、あなたのphp/htmlのネストは間違っています。上記のコードで変数を追加するだけで

関連する問題