
Angular-cli.
$ npm install -g angular-cliCreate a new app:
| <?php | |
| $db = new PDO('mysql:host=localhost;dbname=test','root','root'); | |
| $a = 0; | |
| $csv = array_map('str_getcsv', file('MOCK_DATA.csv')); | |
| foreach($csv as $entree){ | |
| $query = $db->prepare("SELECT * FROM Users WHERE nom = :nom AND prenom = :prenom"); | |
| $query->bindParam(':nom', $entree[0]); | |
| $query->bindParam(':prenom', $entree[1]); | |
| $query->execute(); | |
| if ($query->rowCount() <= 0) { |
| <?php | |
| namespace SimplonReunion\RepoPlaygroundBundle\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * Chambre | |
| * | |
| * @ORM\Table(name="chambre") |
| //***************************************************************** | |
| // HashTable.cpp | |
| // HashTable | |
| // | |
| // Created by Kar Beringer on June 18, 2014. | |
| // | |
| // This header file contains the Hash Table class definition. | |
| // Hash Table array elements consist of Linked List objects. | |
| //***************************************************************** |