<?php
require 'header.php';
require 'connection.php';
mysql_query("DELETE FROM quotes WHERE ID = $_GET[id]") or die("didnt delete properly");
header('Location: index.php');
?>
當我運行這一點,說: 警告:不能更改頭信息 - 頭已經發出(輸出開始爲XXXXX第6行PHP頭錯誤爲什麼這不起作用?
什麼是錯的
whats in header.php? – 2010-12-09 16:50:39
此外,未轉義的`$ _GET [id]`連接到查詢中是一種經典的SQL注入。危險。 – bobince 2010-12-09 17:07:04