That does sound like a horrible teacher because that assignment does not require if statements in order to write sufficient Javascript to satisfy the requirements.
It's not a question of the value of a given language, it's a question of the value of a developer's experience with a given language. If you're fluent in PHP and don't know any Python and are asked...
The "headers sent" error occurs when your code has already finished sending http headers and has begun sending http data and you try to send headers again. That means you're probably echoing some...
Okay - first thing, that script is insecure. You need to escape your strings properly. If you don't, you're vulnerable to a SQL injection attack. One way you can fix it is with...
Assuming it's a MySQL database, you need to use mysql_pconnect(server, username, password); then mysql_select_db(database_name); to establish a connection from PHP. Then you can execute a series of...
Okay, to do that you need to know how to first desgin a database, second how to connect to it with PHP, and third how to read and write data to it with PHP.
That error will occur whenever you try to refresh a page which had variables sent via POST. You might want to instead pass everything with GET, or rethink the your page flows.
Assuming you're using a Linux or UNIX-like web server and have shell access, you can setup a cronjob to run a PHP script once a day to weed out the old records.