task 5406 :

Good order for parm_code
This commit is contained in:
sparkyx 2006-05-02 18:20:29 +00:00
parent 71954c8cb7
commit 5624dc0b59
2 changed files with 4 additions and 4 deletions

View file

@ -45,7 +45,7 @@ class parm_code {
*/
function LoadAll() {
$sql="select * from parm_code";
$sql="select * from parm_code order by p_code";
$Res=ExecSql($this->db,$sql);
$r= pg_fetch_all($Res);
$idx=0;
@ -152,7 +152,7 @@ class parm_code {
function Get() {
if ( $this->p_code == -1 ) return "p_code non initialisé";
$sql=sprintf("select * from parm_code where p_code='%s'",
$sql=sprintf("select * from parm_code where p_code='%s' ",
$this->p_code);
$Res=ExecSql($this->db,$sql);