How can I trace what happens when I try to do a delete using Php? -
i have following code:
<?php // configuration require("../includes/config.php"); // if form submitted if($_get['id']) { $id = $_get['id']; $id = mysql_escape_string($id); $sql = "delete city id = $id"; mysql_query($sql); } ?>
when try run browser error message:
http://localhost/delete.php&id=3 requested url /delete.php&id=3 not found on server http://localhost/delete.php notice: undefined index: id in /home/localhost/html/delete.php on line 6
can tell me how trace what's happening. note machine running on can't run fiddler
the first parameter passed in url must delimited ?
, , subsequent parameters delimited &
(when using protocol)
your url must of form:
delete.php?id=3
with subsequent parameters of form:
delete.php?id=3&name=foo&page=bar
Comments
Post a Comment