snp quand on sait pas, on se tait | Bon, je ne connais pas cette fonction et je débute en plus....mais voila ce que j'ai fait mais ça ne marche tj pas.
Code :
- <?php
- include '../../include/connexion_base.php';
- //$search=$_POST['search'];
-
- if(isset($_POST['search'])) {
- $result = odbc_exec($cnx, "SELECT * FROM devis WHERE num_devis=$search OR date_creation='$search' OR designation='$search' OR client='$search' OR filiale='$search' OR etude='$search'
- OR descriptif='$search' OR keyword1='$search' OR keyword2='$search' " );
- //$result = odbc_exec($cnx, "SELECT * FROM devis WHERE 'MATCH(date_creation,designation,client,filiale,etude,descriptif,keyword1,keyword2) AGAINST ($search)'" );
- echo '<table border>';
- echo "<tr><td><strong>DEVIS</strong></td><td><strong>DATE</strong></td><td><strong>DESIGNATION</strong></td><td><strong>CLIENT</strong></td><td><strong>FILIALE</strong></td><td><strong>ETUDE</strong></td><td><strong>DESCRIPTIF</strong></td></tr>";
- while ($donnees = odbc_fetch_array($result) )
- {
- echo "<tr>";
- echo "<td>".$donnees['num_devis']."</td>";
- echo "<td>".$donnees['date_creation']."</td>";
- echo "<td>".$donnees['designation']."</td>";
- echo "<td>".$donnees['client']."</td>";
- echo "<td>".$donnees['filiale']."</td>";
- echo "<td>".$donnees['etude']."</td>";
- echo "<td>".$donnees['descriptif']."</td>";
- echo "</tr>";
- }
- odbc_close($cnx);
- }
- ?>
|
|