Hello,
if u r a complete newbie to coding, then i hope this will help a lill
make a table called 'Login' with fields
id,
username
password.
then a table called 'Grades' made, with fields like
id[set it as foreign key to the field 'id' of table 'Login'],
grade1
grade2
totalgrade
when a person tries to login, a php code will check if the username and password entered matches any entry of 'Login' table.
if it matches, then get the corresponding 'id', and continue inside the website. otherwise, ask for correct login information again..
now, as soon as thy login, run a php code, which will run a query to see if the value of 'totalgrade' field of table 'Login', corresponding to the id you got in the last step, is above 40.
if it is not, then give an alert message...
this is very basic stuff..just to get u sarted. you will have to learn abt.
html [for login form]
mysql [for making tables, populating and retrieving data from it.]
php [to make the whole thing work]
and lill
javascript[to give alert message.. you can do without it too.]
Regards
Rakesh