Cherche un pro en php
zippeur
Messages postés
197
Date d'inscription
Statut
Membre
Dernière intervention
-
Psyk974 Messages postés 551 Date d'inscription Statut Membre Dernière intervention -
Psyk974 Messages postés 551 Date d'inscription Statut Membre Dernière intervention -
Jé un pti souci avec mon design,
je dois afficher les resulats dune requete msql , dans un tableau
exemple:
-------------------------------------------------------------------------------------------------
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="#">titre1</a></td>
<td><a href="#">titre2</a></td>
</tr>
<tr>
<td><a href="#">titre3</a></td>
<td><a href="#">titre4</a></td>
</tr>
</table>
----------------------------------------------------------------------------------------------
<?
$sql="select * from actu order by id_actu desc LIMIT 3,20 ";
$result=mysql_db_query($dbname,$sql,$id_link);
while($list=mysql_fetch_array($result))
{
$id=$list['id_actu'];
$titre=$list['titre'];
echo "<p align='left'><a href='index.php?p=actu&id=$id' class='text'>$titre...</a></p>";
}
?>
je dois afficher les resulats dune requete msql , dans un tableau
exemple:
-------------------------------------------------------------------------------------------------
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="#">titre1</a></td>
<td><a href="#">titre2</a></td>
</tr>
<tr>
<td><a href="#">titre3</a></td>
<td><a href="#">titre4</a></td>
</tr>
</table>
----------------------------------------------------------------------------------------------
<?
$sql="select * from actu order by id_actu desc LIMIT 3,20 ";
$result=mysql_db_query($dbname,$sql,$id_link);
while($list=mysql_fetch_array($result))
{
$id=$list['id_actu'];
$titre=$list['titre'];
echo "<p align='left'><a href='index.php?p=actu&id=$id' class='text'>$titre...</a></p>";
}
?>
A voir également:
- Cherche un pro en php
- Clé windows 10 pro 64 bits gratuit - Guide
- Cool edit pro - Télécharger - Édition & Montage
- Ccleaner pro gratuit - Télécharger - Optimisation
- Redmagic 10 pro test - Accueil - Téléphones
- I14 pro max - Accueil - Guide téléphones
6 réponses
bonsoir,
ton code:
essai avec celui la:
A+
bonne soirée
ton code:
echo "<p align='left'><a href='index.php?p=actu&id=$id' class='text'>$titre...</a></p>";
essai avec celui la:
echo "<p align='left'><a href='index.php?p=actu&id=".$id."' class='text'>".$titre."...</a></p>";
A+
bonne soirée
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question