Hi All,
Very quick one. The following statement outputs a picture on my page, with a checkbox to delete the story:
<?php
$story_id = (int)$_GET['story_id'];
$SQL = "select thumb_name,pic_id from cms_pictures where story_id = $story_id";
$result = mysql_query($SQL) OR die(mysql_error());
$row = mysql_fetch_row($result);
if (strlen($row['0']) > 0) {
echo '<img src="../../pictures/big/'. $row['0'] .'">';
} else {
echo '<img src="../live_site/images/main_story.jpg">';
}
<br><INPUT TYPE="checkbox" NAME="pic_id" VALUE="'.$row[1].'">';
?>
Now the code works apart from this line:
<br><INPUT TYPE="checkbox" NAME="pic_id" VALUE="'.$row[1].'">';
Now I’ve tried escaping the line, but it still throws up a Parse error: parse error, unexpected '<' ?
Any ideas please as I can’t see the problem?
Thanks