I am trying to query the mysql DB and if there is a picture for the record I would like to have that image displayed. If there is no picture associated with the record then there should be no image displayed and no broken image link showing on the page.
if ($data['picture'] > 0)
{
echo "<td><img style='float: left; padding: 2px 7px 2px 0px;' src='../images/pictures/' .'"$data['picture']"'. .'"$data['message']"'. .'</td>
</tr>'";
}
else
{
echo ".'<td>'. .'"$data['message']"'. .'</td>
</tr>'";
}
I'm sure it's something pretty small that I'm missing but I cannot seem to find the problem.
Currently this page returns a 500 error when I try to view the page.