100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Samenvatting Informatica – Fundament – 5 VWO – D PHP en MySQL $4.58   Add to cart

Summary

Samenvatting Informatica – Fundament – 5 VWO – D PHP en MySQL

 8 views  0 purchase
  • Course
  • Level

Samenvatting: Informatica – Fundament – 5 VWO – D PHP en MySQL Paragraaf 9 (PHP en databases) is gedeeltelijk samengevat, paragraaf 10 (phpMyAdmin) ontbreekt.

Preview 2 out of 12  pages

  • July 2, 2022
  • 12
  • 2021/2022
  • Summary
  • Secondary school
  • 5
avatar-seller
Joël Smit | 5V.in1


Informatica – D PHP en MySQL
1.2 Scripts
Scripts maken webpagina interactief  kunnen op 2 manieren worden
verwerkt/uitgevoerd:
 In browser van computer 
client-side scriptingtaal  bv. JavaScript
Na opvragen van broncode krijg je volledige script
te zien
 Op server  server-side scriptingtaal 
bv. PHP
In broncode zie je alleen uitvoer van script, script
zelf niet
1.3 PHP basiskennis
<!DOCTYPE html>
<html lang="nl">
<head>
<title> </title>
<meta charset="utf-8">
</head>
<body>
<?php

?>
</body>
</html>
Statement = opdracht in PHP  afsluiten met ;
 echo “tekst”  deel tussen aanhalingstekens weergeven
HTML-tags kun je ook gebruiken binnen PHP  bv:
<?php
echo "Het Griekse woord <span style=\"font-family:arial;
color:#8258FA;\"> Enigma </span> betekent raadsel.";
?>
Commentaar toevoegen in PHP:
 //  1 regel commentaar
 #  1 regel commentaar
 /*commentaar*/  meerdere regels commentaar
Opdrachten
 Tekst kop 2  <h2>“tekst”</h2>;
 Dikgedrukt  <strong>”tekst”</strong>; ofwel <b>”tekst”</b>
 1 woord blauw (in dit geval Amsterdam)  echo "<h2 style=\"font-
family:arial; text-align:center;\"><span
style=\"color:#8258FA;\">Amsterdam </span> is de
hoofdstad van Nederland</h2>";
 <br>  volgende regel
1.4 Variabelen in PHP
Variabelen beginnen met dollarteken ($)  gevolgd door letter/underscore  rest van
variabele kan bestaan uit letters/cijfers/underscores  bv:



1

, Joël Smit | 5V.in1


 $land_id = 3;
 $hoofdstad = “Athene”;
 $query = “SELECT * FROM landen”;
In echo gegevens aan elkaar plakken met punt (.)  bv:
<?php
$dag =1 ;
$maand = "januari";
$gebeurtenis = "nieuwjaarsdag";
echo $dag . " " . $maand . " is " . $gebeurtenis;
?>
Variabele naam weergeven  variabele naam tussen enkele aanhalingstekens  bv:
<?php
$dag =1 ;
$maand = "januari";
$gebeurtenis = "nieuwjaarsdag";
echo '$dag' . " " . '$maand' . " is " .
'$gebeurtenis;'
?>
Escapen van tekens  backslash (\) voor teken  bijzondere tekens worden zo normale
tekens en andersom  bv:
 \n = nieuwe regel
 \$ = dollarteken weergeven
 \” = dubbele aanhalingsteken weergeven
Achterhalen welk type variabele heeft  bv. is_int($variabele)  waarde is 1 of NULL
Operatoren
Rekenkundige operatoren
x+y x wordt bij y opgeteld als beide getallen
numeriek zijn
x–y y wordt van x afgetrokken
x*y x wordt vermenigvuldigd met y
x/y x wordt gedeeld door y
x%y geeft het getal weer dat overblijft als je x
door y deelt
x^y of pow(x,y) x tot de macht y
Vergelijkingsoperatoren
= vergelijken 2 variabelen en geven
boolean waarde true of false terug
x == y x en y qua waarden gelijk
x != y x en y ongelijk aan elkaar zijn
x === y x en y gelijk, zowel qua waarde als
datatype
x>y x groter dan y
x<y x kleiner dan y
x >= y x groter dan of gelijk aan y
x <= y x kleiner dan of gelijk aan y
Logische operatoren
x && y (x AND y) x en y beiden waar
x || y (x OR y) x of y waar
!x x onwaar



2

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller SmitJoël. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $4.58. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

78291 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$4.58
  • (0)
  Add to cart