Source for file LastDNA.php

Documentation is available at LastDNA.php

  1. <?php
  2. /**
  3. * Getting last entered DNA no.
  4. * <br/><br/>
  5. @author Gabriele Droege, DNA Bank Network <contact@dnabank-network.org>
  6. @version 2.0
  7. @package Input
  8. @copyright Copyright © 2011 DNA Bank Network http://www.dnabank-network.org<br>The contents of this file are subject to the Mozilla Public License Version 1.1
  9. @filesource
  10. @license http://www.mozilla.org/MPL/ MPL
  11. */
  12.     /**
  13.     * calling connection to database
  14.     */
  15.     include ("../config/head.php");
  16.     
  17. $resultmysql_query ("SELECT Dna_Bank_Number FROM dnabanknumbers WHERE Dna_Bank_Number != '' ORDER BY LENGTH(DNA_Bank_Number)DESC ,DNA_Bank_Number DESC LIMIT 1");
  18. while($row mysql_fetch_object($result))
  19. {
  20. echo $row->Dna_Bank_Number
  21. }
  22.  
  23. ?>

Documentation generated on Tue, 29 Nov 2011 10:44:52 +0100 by phpDocumentor 1.4.3