wed Jun 20
Introduction to PHP
9 – 12h Teaching
Teacher:
- Julien
Goals
Goals
- I understand where PHP stands in a website.
- I've created my first PHP page.
- I understand basic logic and PHP, how a PHP page should be organized and how to query a database.
Useful online resources:
Useful online resources:
The PHP documentation
- http://php.net/
The best source for answers
12 – 13.30h Lunch
13.30 – 17h
Introduction to PHP
Introduction to PHP
- Afternoon exercise
- connect with phpMyAdmin to the 'test' database
- Register some users using your PHP application
- Create a table that shows :
- Make a pretty table .
- The Acronym of the user (JG for Julien Godin; note the upper first.).
- The name of the user, reversed (Nidog Neiluj ; note the upper first.).
- Input the birth date of the user, calculate his age and show it in the table.
hints :
http://php.net/manual/en/function.strtoupper.php
http://php.net/manual/en/function.substr.php
Strings are arrays of characters.
Please use your own functions.