1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| // Rendre la base de données inkmyarmscom, la base courante
$db_selected = mysql_select_db($nomdebase, $link);
if (!$db_selected) {
die ('Impossible de sélectionner la base de données : ' . mysql_error());}
//*******************Début du script*****************
$liste="SELECT * FROM agenda ORDER BY priorite ASC";
$varlist= mysql_query ($liste) or die ;
echo '<form method=post action="sup.php">';
echo '<table class="ligne">','<tr>','<td width="350px">','Evenement','</td>','<td width="80px">','Ajouté le','</td>','<td width="80px">','Date','</td>','<td width="60px">','priorité','</td>','<td width="40px">','clear','</td>','</tr>','</table>','<br>','<br>','<br>';
echo '<table>';
while ($affichage= mysql_fetch_array ($varlist)) {
echo '<div id="postit">';
$id = '$affichage[id]';
echo '<tr>','<td width="350px">', $affichage[contenu],'</td>','<td width="80px">', $affichage[date_ins],'</td>','<td width="80px">', $affichage[date_max],'</td>','<td width="40px">', $affichage[priorite],'</td>','<td>','<input type="checkbox" name="checkbox[]" value= $id />','</td>','<tr>','<br>';
echo '</div>','</ul>','<br>' ;
unset($id) ;
}
echo '</table>';
echo '</form>';
echo '</div>';
?> |
Partager