Hi there.
I am having trouble putting together a short piece of coding🙁
The code must check the value of the 'usergroupid' field in a mysql table to check wether the value contained is set to either of the following numbers; 5, 6, 7, or 8.
If it does then it should display "Welcome Member" if it doesnt it should display "This area is for members only"
Any help would be greatly appreciated as im finding this PHP and mysql tough as this is not my specialist language.
Thanx
Jonathan
==========What ive done so far:==========
<?php
if ($usergroupid == "5")
{
include("http://www.dffddf.net/~members/");
}
elseif ($usergroupid == "6")
{
include("http://www.dfddf.net/~members/");
}
elseif ($usergroupid == "7")
{
include("http://www.dffdfd.net/~members/");
}
elseif ($usergroupid == "8")
{
include("http://www.dfffdfdf.net/~members/");
}
else {
print("You do not have the correct access privilages to enter this area. If you feel you have recieved this message in error, please contact Jonathan (dffdfdf) or another of the website administrators to resolve this error.");
}
?>