Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. $sql2 ="select * from tables_psi.nb_fait_operation_periode where code_tranche = $1 ";
  2.  
  3. $marequete2 = pg_query_params(pg_connect("host=$serveur port=$port dbname=$base user=$_SESSION[identifiant] password=$_SESSION[mot_de_passe]"
  4. ), $sql2, array($_POST[code_tranche])) ;
  5.  
  6. ?>
  7.  
  8. ?php
  9. ...
  10.  
  11. echo "<div name='tableau2' >
  12. <table name='tableau_nbfaitop2' class='doc' >
  13. <thead>
  14. <tr>
  15. <th>code_tranche</th>
  16. <th>nom_operation</th>
  17. <th>interpretation</th>
  18. <th>période</th>
  19. <th>date début</th>
  20. <th>date fin</th>
  21. <th>nombre</th>
  22. </tr>
  23. </thead>" ;
  24. while ($ligne2 = pg_fetch_array($marequete2)){
  25. echo "
  26. <tbody>
  27. <tr>
  28. <td>$ligne2[code_tranche]</td>
  29. <td>$ligne2[nomope]</td>
  30. <td>$ligne2[interpret]</td>
  31. <td>$ligne2[periode]</td>
  32. <td>$ligne2[datedebut]</td>
  33. <td>$ligne2[datefin]</td>
  34. <td>$ligne2[nombre]</td>
  35. </tr>
  36. </tbody>" ;
  37. }
  38. "</table>
  39. </div>" ;
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement