【发布时间】:2013-05-27 00:19:34
【问题描述】:
如何将其显示为表格?
我的意思是如何在表格中显示“导演:”和结果?
echo '<strong>IMDb ID: </strong><a class="movie" href="http://www.imdb.com/title/tt'.$results['imdbid'].'" target="_blank">';
echo ''.$results['imdbid'].'</a><br>';
echo '<strong>Director: </strong>'.$results['director'].'.<br>';
echo '<strong>Cast: </strong>'.$results['lead'].', '.$results['cast'].'.<br>';
echo '<strong>Genre: </strong>'.$results['genre'].'.<br>';
echo '<strong>Country: </strong>'.$results['country'].'.<br>';
echo '<strong>Runtime: </strong>'.$results['runtime'].' min.<br>';
echo '<strong>Medium: </strong>'.$results['disctype'].'.<br>';
echo '<strong>IMDb Rating: </strong>'.$results['imdbrating'].'.<br>';
echo '<strong>Rating: </strong>'.$results['personalrating'].'.<br><br>';
echo '<strong>Synopsis:<br></strong>'.$results['synopsis'].'<br>';
echo '</div><br>';
【问题讨论】:
-
你的问题太模糊了
-
更改 HTML 以使用表格。
-
添加
<table>和其余的 html 标记