i need some help with this .
I want to create a php file with returning 0 or 1 when you open the file with url parameter .
I have this code so far :
<?php
function checkID($ID)
{
$allowedID = array('111','123');
if (in_array($ID, $allowedID ))
echo '1';
else
echo '0';
}
?>
When i open the file it only shows me a blank page .
And i have no idea how to use url parameter , like site.com/myphp.php?ID=111
Thanks !
1 Answer