</td><td width="15%" bgcolor="'.$bg_color.'" align="center" class="update"><div class="update">
<a href="index.php?autoid='. $autoid .'" class="update" OnClick= "return confirm(\'do you really want to delete\')">DELETE</a></div></td></tr>';
I escaped the single quote because the link is inside a PHP string delimited by single quotes.