32 lines
430 B
PHP
32 lines
430 B
PHP
|
<?php
|
||
|
/**
|
||
|
* @file
|
||
|
* Liste des pays
|
||
|
*
|
||
|
*/
|
||
|
$stmt = $conn->prepare('SELECT * FROM country');
|
||
|
$stmt->execute();
|
||
|
$results = $stmt->fetchAll(Doctrine::FETCH_ASSOC);
|
||
|
?>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Pays</th>
|
||
|
<th>Code</th>
|
||
|
<th>Status</th>
|
||
|
</tr>
|
||
|
<?php
|
||
|
foreach($results as $pays){
|
||
|
?>
|
||
|
<tr>
|
||
|
<td><?php print $pays['country'];?></td>
|
||
|
<td><?php print $pays['code'];?></td>
|
||
|
<td><?php print $pays['status'];?></td>
|
||
|
</tr>
|
||
|
<?php
|
||
|
}
|
||
|
?>
|
||
|
</table>
|
||
|
<?php
|
||
|
|
||
|
|
||
|
?>
|