Coding problems for the delete button

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 “

”;
while($row = mysql_fetch_array($result)) {
echo “”;
}
echo “
Name Email Phone Delete
” . $row[‘Name’] . “ ” . $row[‘Email’] . “ ” . $row[‘Phone’] . “ Delete
”;
?>[/php]

Thanks,
AHirsch

Cant find the edit button ( if there is one) anyway there is a small mistake in my coding, it should be:

[php]<?php
include ‘includes/connection.php’;
$query = “SELECT * FROM people”;
$result = mysql_query(“SELECT * from people”);
echo “

”;
while($row = mysql_fetch_array($result)) {
echo “”;
}
echo “
Name Email Phone Delete
” . $row[‘Name’] . “ ” . $row[‘Email’] . “ ” . $row[‘Phone’] . “ Delete
”;
?>[/php]

[php]

<?php include 'includes/connection.php'; $query = "SELECT * FROM people"; $result = mysql_query("SELECT * from people"); echo ""; while($row = mysql_fetch_array($result)) { echo ""; } echo "
Name Email Phone Delete
" . $row['Name'] . " " . $row['Email'] . " " . $row['Phone'] . " Delete
"; ?>

[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service