Requete sql
BapPro Messages postés 46 Date d'inscription Statut Membre Dernière intervention -
jordane45 Messages postés 38472 Date d'inscription Statut Modérateur Dernière intervention - 30 nov. 2015 à 22:14
jordane45 Messages postés 38472 Date d'inscription Statut Modérateur Dernière intervention - 30 nov. 2015 à 22:14
A voir également:
- Requete sql
- Logiciel sql - Télécharger - Bases de données
- Forum Programmation
- Forum Programmation
- Forum Facebook
- Forum Java
1 réponse
Bonjour,
Visiblement tu sais faire une ture... ne te manque plus qu'à savoir utiliser une sous-requête.
Essayes ceci :
Cordialement,
Jordane
Visiblement tu sais faire une ture... ne te manque plus qu'à savoir utiliser une sous-requête.
Essayes ceci :
//préparation de LA requête $sql= "SELECT * FROM Claims_assigned CA WHERE CA.office_manager IN ( SELECT Name FROM Office P INNER U ON U.office = P.ClientID WHERE U.name = '$u' AND U. = '$p' )"; //exécution de la reqûete $req = $req=mysqli_query($dbc,$sql) or die(mysqli_error($dbc)); ?> <br> <table> <tr> <th>Edit</th> <th>Claim Status</th> <th>Office</th> <th>Insurance Carrier</th> <th>Phone#</th> <th>DOS</th> <th>Billed Amount</th> </tr> <?php while($row =mysqli_fetch_array($req)) { ?> <tr> <td><?php echo $row['Claim_Status'] ;?> </td> <td><?php echo $row['office'];?> </td> <td><?php echo $row['insurance_carrier'];?></td> <td><?php echo $row['Phone_num'];?> </td> <td><?php echo $row['DOS'] ?></td> <td><?php echo $row['BilledAmount'] ;?></td> </tr> <?php } //Fin du while ?>
Cordialement,
Jordane