Php : code php

Titrecode php
Postée le25-04-2008
Affichée157
Lienhttp://www.codeswall.info/source-34.html
DescriptionBesoin d'aide pour album
EtatContient des erreurs. Contient des erreurs.
Code d'insertion
OptionsRetirer les numéros de lignes.
TéléchargementTelecharger en format txtTelecharger en format pdf
  1. $dsql = "SELECT * FROM ".$xoopsDB->prefix('gallery_cat')." WHERE uid=".$_GET['uid']." AND pass!='' ";
  2. $dresult = $xoopsDB->query($dsql);
  3. while ($dretour = $xoopsDB->fetcharray($dresult)) {
  4.                 $refused = array();
  5.                 array_push($refused, $dretour['cat']);
  6.                 }
  7.  
  8.  
  9.   if ( (isset($_GET['titre'])) && ($_GET['titre'] == $refused) ) {
  10. $xoopsTpl->assign('lang_album_error', _MD_GALLERY_ALBERROR);
  11.  
  12.   } else {
  13.  
  14.  
  15.  
  16. $bdd = "SELECT * FROM ".$xoopsDB->prefix('gallery_photo')." WHERE uid=".$_GET['uid']." AND cat='".$_GET['titre']."'";
  17. $result_bdd = $xoopsDB->query($bdd);
  18.  
  19. while ($retour_bdd = $xoopsDB->fetcharray($result_bdd)) {
  20.                 array_push($array_pict, $retour_bdd);
  21.                 }       
  22. };