PHP-OOP-L03P01

Uitwerking vorige les(zie ELO........)
1 / 10
next
Slide 1: Slide
PHP OOPHBOStudiejaar 1

This lesson contains 10 slides, with interactive quizzes and text slides.

time-iconLesson duration is: 30 min

Items in this lesson

Uitwerking vorige les(zie ELO........)

Slide 1 - Slide

Waar had je de meeste moeite mee?

Slide 2 - Mind map

How to include a php file in a other php file?
A
Request
B
Require
C
Reboot
D
Rebuild

Slide 3 - Quiz

If we are talking about scope: when you want to make your variable/function is visible in all classes that extend current class including the parent class.
We are talking about:
A
Public
B
Private
C
Protected

Slide 4 - Quiz



Programma
L01P01 - Installatie / Class / Supergloballs
L02P01 - Seperation of responsibilities / comments / loops / array


L04P01 - PDO
L05P01 - Refactor
L06P01 - Routing

Weekopdrachten 24uur voor volgende les klaar en opgeleverd op jullie persoonlijke server.

Opleveren (vrijdag voor de tentamenweek voor 12:00)
  • Todoapp
Tentamen

Slide 5 - Slide

L03P01 - DATA 
Database:
  • Postgress
  • MySQL
  • MongoDB
  • Oracle
  • SAP
  • Access
  • ...
  • ..

Slide 6 - Slide

L03P01 - DATA 
Database:
  • MySQL -> SQL statements


CMD..

Slide 7 - Slide

L03P01 - DATA
Statements:
  • mysql -?
  • mysql -u<user> -p<password>
  • show databases;
  • create database <database-name>;
  • use <database-name>;
  • show table:
  • create table <table-name> (<idField> auto_increment primary key);
  • describe <table-name>
  • insert into
  • select * from

Slide 8 - Slide

L03P01 - DATA
Statement:
  • PDO
  • dsn - mysql:host=127.0.0.1;dbname=todosapp
  • user - root
  • password - root

PDO is een class!

Slide 9 - Slide

L03P01 - Vragen
Statement:
  • PDO
  • dsn - mysql:host=127.0.0.1;dbname=todosapp
  • user - root
  • password - root

PDO is een class!

Slide 10 - Slide