UT Dallas interview question

Basic PHP and SQL