icdk76800 On apprend tous de nos erreurs | Bonjour, je cherche actuellement a faire un tableau d'application s'appuyant sur deux tables de ma bdd le hic est lors du select, je ne sais pas comment faire deux select sur la même requete et qu'il s'affiche tous les deux dans mon tableaux pour le moment il me prend la derniere table et n'affiche pas la premiere voici mon code :
Code :
- <?php
- include '..\Script\connectdb.php';
- $link = mysqli_connect ($host,$user,$pass) or die ('Erreur01 : '.mysql_error() );
- mysqli_select_db($link, $db) or die ('Erreur02 :'.mysql_error());
- mysqli_set_charset($link, "utf8" );
- $select = 'SELECT * FROM applisa , applial';
- $result = mysqli_query($link,$select) or die ('Erreur03 : '.mysql_error() );
- $total = mysqli_num_rows($result);
- echo '<tr>';
- echo '<td><input type="checkbox" id="FullCtrlApplis" ></input></td>';
- echo '<td><strong>Nom<</strong></td>';
- echo '<td><strong>Type</strong></td>';
- echo '<td><strong>Connexion</strong></td>';
- echo '<td><strong>Compte</strong></td>';
- echo '<td><strong>Mot de passe</strong></td>';
- while($row = mysqli_fetch_array($result))
- {
- echo '<tr>';
- echo '<td id="CheckAppli" ><input type="Checkbox" name="Appli[]" value='.$row["Nom"].'></input></td>';
- echo '<td>'.$row["Nom"].'</td>';
- echo '<td>'.$row["Type"].'</td>';
- echo '<td>'.$row["ConnRequir"].'</td>';
- if ($row['ConnRequir'] == "Oui" ) {
- echo '<td><input type="text"/></td>';
- echo '<td><input type="password"/></td>';
- }
-
- echo '</tr>'."\n";
- }
- $data = mysqli_fetch_all ($result);
- mysqli_free_result($result);
- mysqli_close($link);
- ?>
- </table>
|
merci d'avance |