J'utilise TYPO3 comme CMS. Je dois créer une galerie d'oeuvres (photos). Quand on clic dessus ca affiche une page avec un bouton "Generalité" (on arrive directement dessus quand on clic sur la photos), et un bouton "BIO" qui est la Bio de l'artiste. Dans Bio, il y a le nom_art et le nom_oeuvre.
Mes 3 tables:
tx_galerie_oeuvres: uid / nom_art / bio
tx_galerie_oeuvres_nom_artiste_mm (Intermediaire),
tx_galerie_artistes: uid / nom_oeuvre / nom_artiste (Int) / image / n_invent / ...
Code :
Code : Tout sélectionner
if (isset($this->piVars['titre'])){
$res = $GLOBALS['TYPO3_DB']->exec_SELECT_mm_query('*','tx_galerie_oeuvres','tx_galerie_oeuvres_nom_artiste_mm','tx_galerie_artistes','AND tx_galerie_oeuvres.n_invent='.$this->piVars['titre']);
while ($donnees = mysql_fetch_array($res) )
{
$content.='<center><table width="90%"><br><tr>
<td><img src="fileadmin/Galerie FAV/gen_over.jpg"></img></td><td>
<a href="index.php?id=216&tx_galerie_pi1[nom_artiste]='.$donnees['uid'].'&tx_galerie_pi1[nom_oeuvre]='.$donnees['nom_oeuvre'].'"
onMouseOver="bio.src=\'fileadmin/Galerie FAV/bio_over.jpg\'"
onMouseOut="bio.src=\'fileadmin/Galerie FAV/bio.jpg\'">
<img src="fileadmin/Galerie FAV/bio.jpg" name ="bio" border="0"></img></a></td></tr>
[puis ca affiche des infos...](ici: tx_galerie_pi1[nom_artiste]='.$donnees['uid'] )
Comment faire?