Php > code php

Titrecode php
Postée le25-04-2008
Affichée845
Mini-lien
Description

Besoin d'aide pour album

EtatContient des erreurs. Contient des erreurs.
Code d'insertion
Options
Afficher les numéros de lignes  Mettre la source en plein ecran  Selectionner la source  Partager sur Facebook 
Téléchargement Telecharger en format txt  Telecharger en format pdf  Telecharger en format php
Plein ecran
$dsql = "SELECT * FROM ".$xoopsDB->prefix('gallery_cat')." WHERE uid=".$_GET['uid']." AND pass!='' ";
$dresult = $xoopsDB->query($dsql);
while ($dretour = $xoopsDB->fetcharray($dresult)) {
                $refused = array();
                array_push($refused, $dretour['cat']);
                }


  if ( (isset($_GET['titre'])) && ($_GET['titre'] == $refused) ) {
$xoopsTpl->assign('lang_album_error', _MD_GALLERY_ALBERROR);

  } else {
 
 
 
$bdd = "SELECT * FROM ".$xoopsDB->prefix('gallery_photo')." WHERE uid=".$_GET['uid']." AND cat='".$_GET['titre']."'";
$result_bdd = $xoopsDB->query($bdd);

while ($retour_bdd = $xoopsDB->fetcharray($result_bdd)) {
                array_push($array_pict, $retour_bdd);
                }      
};