Hi everyone!
I'm getting this error all the time:
Parse error: parse error, expecting `','' or `';'' in...

I know that the problem is the href line, but since this is the first time I'm writing this kind of thing I can't write it correctly.
This is the code that causes trouble:

echo '<tr>'.
           '<td>'.$row['title'].'</td>'.'<td>'.$row['category'].'</td>'.'<td>'.$row['year'].'</td>'.
           '<td>'.'<font size="2"><a href=\"delete.php?id=".$row['autoid']."\" >delete</a></font>'.'</td>'.
           '</tr>';

Could someone please tell me how to write it correctly?
Thanks in advance!

echo '<tr><td>'.$row['title'].'</td><td>'.$row['category'].'</td><td>'.$row['year'].'</td><td><font size="2"><a href="delete.php?id='.$row['autoid'].'" >delete</a></font></td></tr>';
// or
echo "<tr><td>$row['title']</td><td>$row['category']</td><td>$row['year']</td><td><font size='2'><a href='delete.php?id=$row['autoid']' >delete</a></font></td></tr>";

The problem is that you have mixed double and single quotes, it should be:

<a href="delete.php?id=' . $row['autoid'] . '">

But your coding style needs alot of work, suggestions posted above are good ones.

This question has already been answered. Start a new discussion instead.