This is NOT intended as an answer, it's just that it's too big for a comment.
It looks like you are pretty new to all of this. We all were, once, so I wish you luck. Stick with it and it will become clear and easier (and you will build up a good collection of code snippets).
Read a few books. That really got me up to speed with PHP and MySql.
And be sure that you know when to use MySql and when to use Sqlite. I mention this because, although PHP has some slight preference for MySQl, it also happilly supports Sqlite. And, if you think you might ever develop for Android or Ios then it might be better to become an Sqlite guru as both of them support Sqlite, but neither support MySql.
Get a good IDE. I personally love Netbeans. It's coding & debug facilities are excellent. For development on your own PC you need an Apache server and MySql; I don't think you can beat Xampp if you are using Windows (it's even easier with Linux).
But, I digress, I only started this to mention that you might want to consider your database design. It works fine so long as you are 100% certain that you will never have more than 3 courses.
Even then, it is not third normal form.
I would probably start with something like this. You can add more columns as needed and I will leave it to you to sort out the Primary and Foreign Keys.
mysql> show tables;
+------------------------+
| Tables_in_menu_example |
+------------------------+
| course_subscription |
| courses_description |
| students |
+------------------------+
3 rows in set (0.00 sec)
mysql> describe students;
+------------+---------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+---------+------+-----+---------+----------------+
| student_id | int(11) | NO | PRI | NULL | auto_increment |
| email | text | NO | | NULL | |
+------------+---------+------+-----+---------+----------------+
2 rows in set (0.00 sec)
mysql> describe courses_description;
+-------------+---------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+---------+------+-----+---------+----------------+
| course_id | int(11) | NO | PRI | NULL | auto_increment |
| course_name | text | NO | | NULL | |
+-------------+---------+------+-----+---------+----------------+
2 rows in set (0.00 sec)
mysql> describe course_subscription;
+------------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+---------+------+-----+---------+-------+
| student_id | int(11) | NO | | NULL | |
| course_id | int(11) | NO | | NULL | |
+------------+---------+------+-----+---------+-------+
2 rows in set (0.00 sec)
I do realize that this hasn't answered your question at all (sorry), but I hope that it will help some. Good luck!!