2009-05-04 14:26:54 +00:00

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
?>