You need code in Javascript or php ?

I have to check my skool note book..have done this in skool project