1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| //$pServeur, $pNom, $pMotPasse et $pBase ont été initialisés
// Il faudrait penser au path si tes images ne se trouvent pas dans le répertoire courant.
if ($dbLink = mysql_pconnect ($pServeur, $pNom, $pMotPasse))
{
// Connexion à la base
if (mysql_select_db ($pBase, $dbLink))
{
$query = "SELECT * FROM tableau_images WHERE client_id = ".$clienId." ORDER BY nom_image";
if($dbResult = mysql_query($query, $dbLink))
{
while($dbRow = mysql_fetch_object($dbResult))
{
print("<IMG src=\"".$dbRow->nom_image"\" name=\"".$dbRow->.nom_image"\" ><BR>\n");
}
}
}
} |
Partager