Jump to content

delete problem


netman182

Recommended Posts

hey i am having a problem with the delete command. i have included the code for help.

 

to me i don't see a problem but obviously there is.

 

it is not deleting the field that the form is sending.

 

it does complete the header fine.

 

some advice would be great.

 

<?php 


include("dbc.php");

$id = $_POST['id'];

$sql="DELETE FROM players WHERE id= '$id' ";
$result=mysql_query($sql);

header("Location: masterrosteredit.php?msg=Your player was deleted");

mysql_close();

?>

Link to comment
https://forums.phpfreaks.com/topic/257958-delete-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.