[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pmb.user] =?utf-8?Q?RE=C2=A0:?= Re: RE : Re: Appliquer un e =?utf-8?Q?cat=C3=A9gorie?= a u contanu d'un pani er
- To: <pmb.user@pizz.net>
- Subject: [pmb.user] =?utf-8?Q?RE=C2=A0:?= Re: RE : Re: Appliquer un e =?utf-8?Q?cat=C3=A9gorie?= a u contanu d'un pani er
- From: "MONSEMPES Anne" <anne.monsempes@icl-lille.fr>
- Date: Tue, 13 Jun 2006 17:11:00 +0200
- Delivered-To: "pizz.net:pmb.user"@ml.online.net
- Delivered-To: pizz.net-pmb.user@pizz.net
- Reply-to: pmb.user@pizz.net
- Sender: pmb.user_owner@pizz.net
- Thread-Index: AcaO+z46cfaVBQnvRHaETHmBbFFJfAAAD9z5
- Thread-Topic: =?utf-8?Q?=5Bpmb=2Euser=5D_Re=3A_RE_=3A_Re=3A_Applique?==?utf-8?Q?r_un_e_cat=C3=A9gorie_a_u_contanu_d=27u?==?utf-8?Q?n_pani_er?=
Avec ce code, nouveau message d'erreur : Ligne 0 : INSERT INTO notices_categories(notcateg_notice, notcateg_categorie)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1lignes affectées : -1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
_____
Ligne 1 : SELECT notice_id, '5' from notices where notice_id in
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1lignes affectées : -1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
_____
Ligne 2 : (CADDIE(NOTI))
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CADDIE(NOTI))' at line 1lignes affectées : -1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CADDIE(NOTI))' at line 1
Anne Monsempès
-------- Message d'origine--------
De: pmb.user_owner@pizz.net de la part de Didier Bellamy
Date: mar. 13/06/2006 17:08
À: pmb.user@pizz.net
Cc:
Objet: [pmb.user] Re: RE : Re: Appliquer un e catégorie a u contanu d'un pani er
Bonjour,
C'est apparement normal, car la procédure ne fonctionne que s'il y a une
seule notice à traiter dans le panier.
Voici ce qu'il faut mettre dans la partie code MySQL pour obtenir le
résultat escompté :
INSERT INTO notices_categories(notcateg_notice, notcateg_categorie)
SELECT notice_id, !!nouvelle_categorie!! from notices where notice_id in
(CADDIE(NOTI))
Le reste de la procédure est correct, il faut cependant faire attention
car 2 catégories peuvent avoir le même nom.
Le salut est dans la sauvegarde !!!
Je modifie le Wiki dès que possible.
Attention, ne fonctionne pas en version 2.2.
Cordialement
--
Didier Bellamy
PMB Services
24 & 26 Place des Halles
72500 Château du Loir
Tél.02-43-440-660
http://Www.sigb.net
MONSEMPES Anne a écrit :
>J'ai enlevé la parenthèse fautive mais
>Ligne 0 : INSERT INTO notices_categories(notcateg_notice, notcateg_categorie) VALUES (CADDIE(NOTI), '5')
>
>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(NOTI), '5')' at line 1lignes affectées : -1
>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(NOTI), '5')' at line 1
>
>???
>
>Anne Monsempès.
>
> -------- Message d'origine--------
> De: pmb.user_owner@pizz.net de la part de Anthony Lorry (CEDIAS-Musée social)
> Date: mar. 13/06/2006 16:50
> À: pmb.user@pizz.net
> Cc:
> Objet: [pmb.user] Re: Appliquer une catégorie au contanu d'un panier
>
>
>
>
> Il y a une parenthèse en trop dans le dernier bloc = (CADDIE(NOTI), 5) devrait être mieux ???
>
> Anthony Lorry
>
>
>
>
> -----Message d'origine-----
> De : pmb.user_owner@pizz.net [mailto:pmb.user_owner@pizz.net]De la part
> de MONSEMPES Anne
> Envoyé : mardi 13 juin 2006 16:29
> À : pmb.user@pizz.net
> Objet : [pmb.user] Appliquer une catégorie au contanu d'un panier
>
>
>
> J'ai essay de suivre les instructions du wiki pour appliquer une catgorie toutes les notices d'un panier, et voil le message d'erreur qsue j'obtiens :
> Ligne 0 : INSERT INTO notices_categories(notcateg_notice, notcateg_categorie) VALUES (CADDIE(NOTI)), 5)
>
> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(NOTI)), 5)' at line 1lignes affectes : -1
> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(NOTI)), 5)' at line 1
>
> D'avance pardon si l'erreur est vident, je n'y connais pas encore grand-chose en SQL...
>
> Anne Monsemps
>
> -- No attachments (even text) are allowed --
> -- Type: application/ms-tnef
> -- File: winmail.dat
>
>
> Liste de diffusion pmb.user
> Pour se dsinscrire : mailto:pmb.user_request@sigb.net?subject=unsubscribe
>
>
>
>
> Liste de diffusion pmb.user
> Pour se dsinscrire : mailto:pmb.user_request@sigb.net?subject=unsubscribe
>
>
>
>
>
>-- No attachments (even text) are allowed --
>-- Type: application/ms-tnef
>-- File: winmail.dat
>
>
>Liste de diffusion pmb.user
>Pour se d�sinscrire : mailto:pmb.user_request@sigb.net?subject=unsubscribe
>
>
>
>
Liste de diffusion pmb.user
Pour se dsinscrire : mailto:pmb.user_request@sigb.net?subject=unsubscribe
-- No attachments (even text) are allowed --
-- Type: application/ms-tnef
-- File: winmail.dat
Liste de diffusion pmb.user
Pour se désinscrire : mailto:pmb.user_request@sigb.net?subject=unsubscribe