我正在尝试使用 MySQL 数据填充 HTML 表,但在第 128 行(即在带有 的行之后$row['location']
)出现错误,显示:T_CONSTANT_ENCAPSED_STRING。我已经用谷歌搜索了,但我无法真正理解这意味着什么或我可能会出错的地方。任何帮助将不胜感激。谢谢 :)
echo "<table id='row1_border'>";
while($row = mysql_fetch_array($result)) ;
{
echo "<tbody>";
echo "<tr class='job_listing'>";
echo "<td class='job'>";
echo "<div class='company_image'></div>";
echo "<div class='job_title'>";
echo "<span class='job_title_style'></span>";
echo "</div>";
echo "<div class='company_name'>";
echo "<span class='company_name_style'>Akin, Gump, and Smith</span>";
echo "</div>";
echo "<div class='company_tagline'>";
echo "<span class='company_tagline_style'>This is just a test.</span>";
echo "</div>";
echo "</td>";
echo "<td class='location'>";
echo "<div class='location_div'>";
echo "<span class='location_style'>";
$row['location']
"</span>";
echo "</div>";
echo "</td>";
echo "<td class='job_type'>";
echo "<div class='job_type_div'>";
echo "<span class='job_type_style'>";
echo .$row['job_type'].
"</span>";
echo "</div>";
echo "</td>";
echo "</tr>";
echo "</tbody>";
}
echo "</table>"
?>