yes
$connexion = mysql_connect ($dbHost,$dbUsername,$dbPassword);
mysql_select_db($name,$connexion);
$select = "SELECT * FROM news";
$result = mysql_query($select,$connexion) or die ('Erreur : '.mysql_error() );
$total = mysql_num_rows($result);
if($total) {
while($row = mysql_fetch_array($result)) {
$texte_modif=nl2br($row['texte']);
echo '<span class="date">'.$row['date'].'</span>';
echo '<span class="texte"><p align="justify">'.$texte_modif.'</span></p><br>';
}
ça marche
Message édité par noizing le 14-11-2003 à 22:48:50