Je voudrais ajouter un ORDER BY dans cette requête:
$this->findMany('SELECT * FROM '.$this->sTable.' WHERE nom=?',$nom);
Cmt faire ?
Je voudrais ajouter un ORDER BY dans cette requête:
$this->findMany('SELECT * FROM '.$this->sTable.' WHERE nom=?',$nom);
Cmt faire ?
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 $this->findMany('SELECT * FROM '.$this->sTable.' WHERE nom=? ORDER BY ? ASC',$nom,$champATrier);
Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
Mes cours/tutoriaux
En fait ma requête est: il faudrait ajouter un ORDER BY par_dtm DESC
public function findByNotChx($noe_chx){
return $this->findMany('
SELECT *
FROM '.$this->sTable.',c_par
WHERE
not_id = par_id
AND par_dtm >= not_dtm
AND not_chx=?',$noe_chx
);
}
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 public function findByNotChx($noe_chx){ return $this->findMany(' SELECT * FROM '.$this->sTable.',c_par WHERE not_id = par_id AND par_dtm >= not_dtm AND not_chx=? ORDER BY par_dtm DESC ',$noe_chx ); }
Framework php sécurisé et simple à prendre en main avec générateur web http://mkframework.com/ (hebergé sur developpez.com)
Mes cours/tutoriaux
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager