Forum Moderators: coopster
if (isset($_POST['id'])) {$id= $_POST['id'];} else {$id='1';}
It is just because your POST_id is not set, and you do not have a default value set (see else statement). Echo POST['id'] at the first line just to see.
Always have a default value for POST and GET variable. It can be NULL or any value to want.
Because you are deleting the id_row in the db, I suggest you to do the following .
1/ check if the POST id is set
2/ If yes, check that this id exist in the db (just to be sure)
3/ If not (to both) than id is NULL.
Then you can
if($id) {mysql_query("DELETE FROM birthdays where id = $id")or die("Delete Error: ".mysql_error());}