Sending an HTML email on a PHP code gives me a Syntax Error

Good morning, I'm having problems when I execute my code, I think I'm having problems with the quotes, etc.

So far this is what I've tried and I'm stil having syntax error with this specific line of codes.

$message .= "if ($row['status']) :
        		$output .= '<td>'.$row["status"].'</td> ';
    			else:
        		$output .= '
                <td>
                    <form method="post" action="update-request-status.php">
                        <input type="hidden" name="reqnumber" value="'.$row['reqnumber'].'" />
                        <button class="button" type="submit" name="completed" value=""><span>New Request!</span></button>
                    </form>
                </td>";

Here's what it looks like right now:

Summary

Error

#php #html #mysql #database

6 Likes1.50 GEEK