I went this way:

HTML -> CSS -> JAVA (for OOP) -> PHP -> SQL