Hello Guys,
I want to delete a record from my saved.php
which has a code,
<td><a href=\"delete.php?id=$ID\">delete</a></td>
Which gets the link as
http://localhost/delete.php?id=8022
I then have a delete.php file,
which has this code,
<?php
if(isset $_GET['id']))
{
$id = $_GET['ID'];
$con = mysql_connect("localhost","t","123456");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("t", $con);
mysql_query("delete FROM t_table where ID='$ID'");
}
?>
But i get an error,
Parse error: parse error, expecting `'('' in C:\wamp\www\delete.php on line 3
Thank you for the help :)