This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://zupimages.net/viewer.php?id=19/39/ip6a.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> show tables; | |
+-------------------------+ | |
| Tables_in_wild_db_quest | | |
+-------------------------+ | |
| school | | |
| wizard | | |
+-------------------------+ | |
2 rows in set (0.00 sec) | |
mysql> DESCRIBE wizard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1ER REQUETE | |
mysql> SELECT * | |
-> FROM `wizard` | |
-> WHERE birthday | |
-> BETWEEN '1975-01-01' AND '1985-01-01'; | |
+----+-----------+----------+------------+-------------+---------------------------------------+-----------+ | |
| id | firstname | lastname | birthday | birth_place | biography | is_muggle | | |
+----+-----------+----------+------------+-------------+---------------------------------------+-----------+ | |
| 1 | harry | potter | 1980-07-31 | london | | 0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Requete d'insertion | |
mysql> INSERT INTO school (name, country, capacity) VALUES ('Hogwarts School of Witchcraft and Wizardry', 'United Kingdom', 400), ('Ilvermorny School of Witchcraft and Wizardry' , 'USA', 300), ('Koldovstoretz', 'Russia', 125), ('Mahoutokoro School of Magic', 'Japan', 800), ('Uagadou School of Magic', 'Uganda', 350); | |
mysql> SELECT * FROM school; | |
+----+----------------------------------------------+----------+----------------+ | |
| id | name | capacity | country | | |
+----+----------------------------------------------+----------+----------------+ | |
| 1 | Beauxbatons Academy of Magic | 550 | France | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://zupimages.net/viewer.php?id=19/40/4zlj.jpg | |
http://zupimages.net/viewer.php?id=19/40/dk33.jpg | |
http://zupimages.net/viewer.php?id=19/40/bns5.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "Merci à bientot"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'connec.php'; | |
$pdo = new \PDO (DSN, USER, PASS); | |
$query = "SELECT * FROM friend"; | |
$statement = $pdo->query($query); | |
$friends = $statement->fetchAll(); | |
foreach ($friends as $friend) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Bicycle.php | |
class Bicycle | |
{ | |
/** | |
* @var string | |
*/ | |
private $color; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'connect.php'; | |
$pdo = new \PDO (DSN, USER, PASS); | |
//Recuperer les élements du tableaux bribe | |
$query = "SELECT * FROM bribe"; | |
$statement = $pdo->query($query); | |
$bribes = $statement->fetchAll(PDO::FETCH_ASSOC); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
?> | |
<!doctype html> | |
<html lang="fr"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |