
le 04/03/2012 à 19:34
alexandryne
Bonsoir,
Je n'arrive pas à centrer le texte des cellules qui viennent de la base de données dans mon tableau. Pour l'instant tout est à gauche. Merci. Mon code, c'est :
Je n'arrive pas à centrer le texte des cellules qui viennent de la base de données dans mon tableau. Pour l'instant tout est à gauche. Merci. Mon code, c'est :
- <?php <html>
- <body>
- <table border="1" style="border-collapse: collapse" width=100%">
- <thead>
- <tr>
- <th width=12,5%" bgcolor=#FFCCFF>Date</th>
- <th width=12,5%" bgcolor=#FFCCFF>Partenaire</th>
- <th width=12,5%" bgcolor=#FFCCFF>Achat</th>
- <th width=12,5%" bgcolor=#FFCCFF>Pourcentage</th>
- <th width=12,5%" bgcolor=#FFCCFF>Attente</th>
- <th width=12,5%" bgcolor=#FFCCFF>Validation</th>
- <th width=12,5%" bgcolor=#FFCCFF>Paiement</th>
- <th width=12,5%" bgcolor=#FFCCFF>Date</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><?php echo stripslashes($data[ 'date_achat']); ?></td>
- <td><?php echo stripslashes($data[ 'partenaire']); ?></td>
- <td><?php echo stripslashes($data[ 'montant_achat']); ?></td>
- <td><?php echo stripslashes($data[ 'pourcentage']); ?></td>
- <td><?php echo stripslashes($data[ 'montant_attente']); ?></td>
- <td><?php echo stripslashes($data[ 'montant_valide']); ?></td>
- <td><?php echo stripslashes($data[ 'montant_paye']); ?></td>
- <td><?php echo stripslashes($data[ 'date_paiement']); ?></td>
- </tr>
- </tbody>
- </table>?>