View Single Post
  #3 (permalink)  
Old July 31st, 2008, 07:36 PM
mattw1100 mattw1100 is offline
Registered User
 
Join Date: Jul 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey,

Thanks for your help! I tried modifying the delete.php page again and it returns that the row has been deleted but it has not and I can't figure it out for the life of me.

Code:
// Include database connection
  include("connect.php");

if($_GET["cmd"]=="delete"){

       $id = $_GET['id'];
       $sql = "DELETE FROM students WHERE usernumber=$id";
       echo "Row deleted!";

 }else {
    die("Error");

}
Reply With Quote