here is some test code to get a variable called delete from the address bar
echo $_GET['delete'];
if($_GET['delete'])
{
echo'hello';
$sql = "DELETE FROM `users` WHERE `user_id` = '".$_GET['delete']."' LIMIT 1";
echo $sql;
//$result = mysql_query($sql) or die(mysql_error());
}
the address looks like this
users.php?delete=26
Whats wrong im not sure, it just doesnt echo.
Thank you for your help.

New Topic/Question
Reply




MultiQuote






|