Good morning to all ,
How are you ?
I am trying to do something for pilots who has less than 10 flights in our Virtual
to prevent download the files from Downloads page in our Virtual
how can i do that ??
i have this code but i am not sure if it work and where can i put it
$userid = $_SESSION["userid"];
$result = mysql_query("SELECT count(*) from `topics` where `userid` = '$userid') or die(mysql_error());
$topicCount = mysql_result($result,0);
if($topicCount < 10){
echo "You have $topicCount topics so far. You need a minimum of 10 to get access to downloads.";
}
download just for pilot who has more than 10 flights otherways pilot cannot download the files
Thank you