phpDocumentor koliportal
[ class tree: koliportal ] [ index: koliportal ] [ all elements ]

Source for file page.buildinglist-csv.php

Documentation is available at page.buildinglist-csv.php

  1. <?php
  2. /** Épületek listája CSV formátumban
  3. * @package koliportal
  4. */
  5.  
  6. $sql_q = "SELECT * FROM buildings AS b ORDER BY b.bsname";
  7. debug_echo($sql_q, DEBUG_SQL);
  8.  
  9. $sql_res = mysql_query($sql_q, $database);
  10. if ($sql_res === false)
  11. {
  12. myerr(ERROR_DB, $sql_q);
  13. }
  14.  
  15. $sql_res = mysql_query($sql_q, $database);
  16. if ($sql_res === false)
  17. {
  18. myerr($sql_q);
  19. }
  20. ?>
  21.  
  22. <p>Az épületlista CSV formátumban:</p>
  23. <pre>
  24. <?php
  25.  
  26. while ($arr = mysql_fetch_assoc($sql_res))
  27. {
  28. $line = make_csv_line($arr, $CSV_BUILDINGLIST_FSEQ);
  29. printf("%s\n", $line);
  30. }
  31.  
  32. ?>
  33. </pre>

Documentation generated on Wed, 18 May 2005 19:24:38 +0200 by phpDocumentor 1.3.0RC3