Partage de codes sources - CodesWall.info
Php
> code php
Titre
code php
Postée le
25-04-2008
Affichée
825
Mini-lien
Description
Besoin d'aide pour album
Etat
Contient des erreurs.
Code d'insertion
Options
Tweet
Téléchargement
$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
)
;
}
}
;
Postez votre code-source
Informations
Catégorie *
-
Php
javascript
CSS
HTML
Xml
Perl
C
C++
Java
VB.Net
Script Batch
C#.Net
Visual Basic
VBA
Shell
mIRC
Latex
OCaml
pascal
MySQL
MatLab
Fichier .ini
SmallTalk
Autre
Titre *
(50 car. max)
Description *
(200 car. max)
Le code
Fonctionne
Ne fonctionne pas
Je ne sais pas
Source
* : Champs obligatoires
Fermer
Accueil
Poster
Actualités
Règles
Contact
Partenaires
Infos / Aide
Php
(58)
javascript
(35)
CSS
(20)
HTML
(16)
Xml
(17)
Perl
(11)
C
(64)
C++
(51)
Java
(48)
VB.Net
(5)
Script Batch
(8)
C#.Net
(4)
Visual Basic
(6)
VBA
(5)
Shell
(10)
mIRC
(3)
Latex
(6)
OCaml
(4)
pascal
(9)
MySQL
(13)
MatLab
(3)
Fichier .ini
(5)
SmallTalk
(1)
Autre
(17)
\n
Forum informatique