I'm trying to populate an HTML table with MySQL data, but I'm getting an error at line 128 (i.e. just after the line with $row['location']) that says: T_CONSTANT_ENCAPSED_STRING. I've Googled around, but I can't really get a handle on what that means or where I might be going wrong. Any help would be greatly appreciated. Thanks :)
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>"
?>
mysql_*functions. They are no longer maintained and community has begun the deprecation process . Instead you should learn about prepared statements and use either PDO or MySQLi. If you care to learn, here is a quite good PDO-related tutorial.