letsql='SELECT DISTINCT SUM(s.amount) as total,cu.name FROM sales s,customers cu,contacts co WHERE co.iduser = ? AND co.idcustomer = cu.idcustomer AND cu.idcustomer = s.idcustomer AND ((s.month >= ? AND s.year = ?) OR s.year > ?) GROUP BY cu.name ORDER BY total DESC';
letsql='SELECT DISTINCT SUM(s.amount) as total,cu.name FROM sales s,customers cu,contacts co WHERE co.iduser = ? AND co.idcustomer = cu.idcustomer AND cu.idcustomer = s.idcustomer AND ((s.month >= ? AND s.year = ?) OR s.year > ?) GROUP BY cu.name ORDER BY total DESC LIMIT 10';
letsql='SELECT DISTINCT SUM(s.amount) as total,s.year,s.month FROM sales s,customers cu,contacts co WHERE co.iduser = 41 AND co.idcustomer = cu.idcustomer AND cu.idcustomer = s.idcustomer AND ((s.month >= 12 AND s.year = 2021) OR s.year > 2021) GROUP BY s.year,s.month ORDER BY s.year,s.month';
<inputid="MotDePasse"value={password}onChange={handleChangePassword}name='password'className="texte_zone"type="text" placeholder="Mot de passe..."required/>
<inputid="ConfirmeMotDePasse"value={confPassword}onChange={handleChangeConfPassword}name='confimPassword'className="texte_zone"type="text" placeholder="Confirmation mot de passe..."required/>
<inputid="NouvMotDePasse"value={newPassword}onChange={handleChangeNewPassword}name='newPassword'className="texte_zone"type="text" placeholder="Nouveau mot de passe..."required/>
<inputid="MotDePasse"value={password}onChange={handleChangePassword}name='password'className="texte_zone"type="password" placeholder="Mot de passe..."required/>
<inputid="ConfirmeMotDePasse"value={confPassword}onChange={handleChangeConfPassword}name='confimPassword'className="texte_zone"type="password" placeholder="Confirmation mot de passe..."required/>
<inputid="NouvMotDePasse"value={newPassword}onChange={handleChangeNewPassword}name='newPassword'className="texte_zone"type="password" placeholder="Nouveau mot de passe..."required/>
</tr>
</table>
<p>{resetPasswordError===true?"Le mot de passe est incorrect":''}</p>