Retrieving ID from Query String Non Register Globals
Author : Integral
For use with a database query. Is independent of POST or GET method because it makes use of the $_REQUEST super-global.
PHP Example :
<?
if ( !isset ( $_REQUEST['id'] ) )
{
$id = $_REQUEST['id'];
$sql = "SELECT * FROM some_table WHERE id = '$id'";
}
else
{
echo '$id could not be retrieved!!';
}
?>