I have followed an example from a website to delete a record from database but i have modified some of the field <?php $msg=""; $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("aaa", $con); $msg=""; if(isset($_REQUEST['id'])); { $id=$_REQUEST['id']; } else { $id=""; $msg=$msg."Please enter your ID. <a href='toDelete.php'>Try again</a><br>"; } if($id!="") { $query="DELETE FROM aab WHERE id='$id'"; mysql_query($query); $msg=$msg."Record was successfully deleted. <a href='toDelete.php'>Delete another</a>"; } print "$msg"; ?> PHP: i've got error at line 18 which is the else statement, does anyone know where actually went wrong?
since i don't know where is the delete button so i guess i'll just help lol i put a colon symbol ( ; ) after my if statement lol