Police de caractère dans un tableau php
Posté : 01 nov. 2010, 13:11
Qui peux m'aider à définir une taille de police dans le tableau ci dessous
Merci
<?php
$listing = mysql_query("SELECT * FROM mariages" . $where . $sort . $limit);
if (mysql_num_rows($listing)) {
echo "<table border=\"1\">";
echo "<tr><th>Localité</th><th>Epoux</th><th>Père époux</th><th>Mère époux</th><th>Epouse</th><th>Père épouse</th><th>Mère épouse</th><th>Date</th><th>N° ouvrage</th></tr>";
while ($listing_row = mysql_fetch_array($listing)) {
$mariage_commune = $listing_row['mariage_commune'];
$mariage_epoux = $listing_row['mariage_epoux'];
$pepoux = $listing_row['pepoux'];
$mepoux = $listing_row['mepoux'];
$mariage_epouse = $listing_row['mariage_epouse'];
$pepouse = $listing_row['pepouse'];
$mepouse = $listing_row['mepouse'];
$mariage_an = $listing_row['mariage_an'];
$mariage_num_ouvrage = $listing_row['mariage_num_ouvrage'];
echo "<tr><td>" . $mariage_commune . "</td><td>" . $mariage_epoux . "</td><td>" . $pepoux . "</td><td>" . $mepoux . "</td><td>" . $mariage_epouse . "</td><td>" . $pepouse . "</td><td>" . $mepouse . "</td> <td>" . $mariage_an . "</td><td nowrap=\"nowrap\"><a href=\"detail_ouvrages.php?id=" . $mariage_num_ouvrage . "\" target=\"_blank\">+ d'info</a></td></tr>";
}
echo "</table>";
}
else {
echo 'Il n\'y a pas de données correspondant à votre recherche.';
}
mysql_close();
?>
Merci
<?php
$listing = mysql_query("SELECT * FROM mariages" . $where . $sort . $limit);
if (mysql_num_rows($listing)) {
echo "<table border=\"1\">";
echo "<tr><th>Localité</th><th>Epoux</th><th>Père époux</th><th>Mère époux</th><th>Epouse</th><th>Père épouse</th><th>Mère épouse</th><th>Date</th><th>N° ouvrage</th></tr>";
while ($listing_row = mysql_fetch_array($listing)) {
$mariage_commune = $listing_row['mariage_commune'];
$mariage_epoux = $listing_row['mariage_epoux'];
$pepoux = $listing_row['pepoux'];
$mepoux = $listing_row['mepoux'];
$mariage_epouse = $listing_row['mariage_epouse'];
$pepouse = $listing_row['pepouse'];
$mepouse = $listing_row['mepouse'];
$mariage_an = $listing_row['mariage_an'];
$mariage_num_ouvrage = $listing_row['mariage_num_ouvrage'];
echo "<tr><td>" . $mariage_commune . "</td><td>" . $mariage_epoux . "</td><td>" . $pepoux . "</td><td>" . $mepoux . "</td><td>" . $mariage_epouse . "</td><td>" . $pepouse . "</td><td>" . $mepouse . "</td> <td>" . $mariage_an . "</td><td nowrap=\"nowrap\"><a href=\"detail_ouvrages.php?id=" . $mariage_num_ouvrage . "\" target=\"_blank\">+ d'info</a></td></tr>";
}
echo "</table>";
}
else {
echo 'Il n\'y a pas de données correspondant à votre recherche.';
}
mysql_close();
?>