table` ( `id` int(11) NOT NULL AUTO_INCREMENT, `promo` int(11) NOT NULL, `commande` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `commande` (`commande`) ) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;"; $resul = mysql_query($query, $this->link); } function charger($commande){ return $this->getVars("select * from $this->table where commande=\"$commande\""); } } ?>