I am trying to add a delete button into my table, however I am getting an error and I am not quite sure why. I am a beginner coder FYI, as in absolute beginner.
The code is below, and I am getting the error over delete_ac and the equals in =<? in the last line. I am using MAMP if it makes a difference, and connection.php has all my correct connection information. This is supposed to be a delete button that will get rid of that line of data.
[php]<?php
include ‘includes/connection.php’;
$query = “SELECT * FROM people”;
$result = mysql_query(“SELECT * from people”);
echo “
Name | Phone | Delete | |
---|---|---|---|
” . $row[‘Name’] . “ | ” . $row[‘Email’] . “ | ” . $row[‘Phone’] . “ | Delete |
?>[/php]
Thanks,
AHirsch