1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| <?php
$wd_host = "localhost";
$wd_login = "root";
$wd_passe = "";
$wd_base = "adeccoop_testbd";
$num = $_POST['num_compt'];
if(empty($num)) {
echo 'veuillez entré votre numéro de compte svp';
}
else{
$connexion = mysqli_connect($wd_host,$wd_login,$wd_passe, $wd_base) OR die ("Serveur Down !" );
$resultat = "SELECT solde FROM compte WHERE num_compt = $num" ;
$res = $connexion->query($resultat);
$row = mysqli_fetch_assoc($res);
}?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Module de consultation compte en ligne ADEC</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script>
<body id="home">
<center> <h1> MODULE DE CONSULTATION DE COMPTE EN LIGNE CHEZ ADEC</h1></center>
<div class="rain">
<div class="border start">
<form method="post" action="solde.php">
<label for="compte">Numéro de compte </label>
<input name="num_compt" type="VARCHAR" placeholder="COMPTE"/>
<br><br><input type="submit" value="Consulter"/>
<br><br><br><label for="pass"> Solde:</label>
<input name="pass" type="" value="<?php echo $row['solde']; ?> FCFA"/>
</form>
<h1><a href="http://localhost/test3/index.php">RETOUR </a></h1>
</div>
</div>
</body>
</html> |