Am i right in thinking if i put '?variable=value' after the file name that it will
create $variable = value in the script?
yes you are (on most default installations)
test it by putting "echo $variable" at the top of your page.
About the IF:
You might do better if you put {} around the statements that
you want to execute in the IF;
if ($this==that)
{
echo "do this";
}
else
{
echo "do that";
}
And lastly, the resonse of your IF statement depends not only on $id, but also on $Number:
IF ($number == 0) :
the "no member" message is printed if $number equals zero, so check if the $number is set properly.
TIP: whenever some statement doesn't do what you think it should do,
print the contents of the variables to the screen so you check if what goes into your statement is correct, instead of spending hours debugging a statement that can never ever work because the input is bad.
In your code, no matter how long you spend working out the IF, if the $number is always zero, it will never work.