commit a9b72d888966366500393011c01ec2e65fbfa1e8
Author: Florent Chuffart <florent.chuffart@ens-lyon.fr>
Date:   Thu Feb 19 08:43:49 2015 +0100

    Fixing bug in the session.php and SQL example

diff --git a/doc/conf.py b/doc/conf.py
index 89b9aa5..2d44ed8 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -50,9 +50,9 @@ copyright = u' since 2007, Florent CHUFFART, Gael YVERT'
 # built documents.
 #
 # The short X.Y version.
-version = '0.1.22'
+version = '0.1.23'
 # The full version, including alpha/beta/rc tags.
-release = '0.1.22'
+release = '0.1.23'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff --git a/src/lib/session.lib.php b/src/lib/session.lib.php
index 0adfeba..6dfd256 100644
--- a/src/lib/session.lib.php
+++ b/src/lib/session.lib.php
@@ -11,7 +11,7 @@ function execQry ($qry, $bd)
   $result = mysql_query($qry, $bd);
   if (!$result)
   {
-    echo "error in execQry ". mysql_error ($db);
+    echo "error in execQry ". mysql_error ($bd);
     exit;
   }
   else
diff --git a/src/sql/labstocks_db.sql b/src/sql/labstocks_db.sql
index c8fd433..4795105 100644
--- a/src/sql/labstocks_db.sql
+++ b/src/sql/labstocks_db.sql
@@ -1204,7 +1204,7 @@ CREATE TABLE `strains` (
 
 LOCK TABLES `strains` WRITE;
 /*!40000 ALTER TABLE `strains` DISABLE KEYS */;
-INSERT INTO `strains` VALUES (1,'BY4700','2005-02-01','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,NULL,NULL,NULL,NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(2,'BY4709','2005-02-01','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATb',NULL,NULL,NULL,NULL,NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(3,'BY4719','2005-02-01','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,NULL,NULL,NULL,'trp1∆63','ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(4,'BY4724','2005-02-01','Gift from Gottschling Lab. Strain from ','S288c','MATa',NULL,NULL,NULL,'lys2∆0',NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(5,'BY4720','2003-05-06',NULL,'S288c','MATb',NULL,NULL,NULL,'lys2∆0','trp1∆63','ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann et al; Yeast 1998 14:115-132.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(6,'BY4716',NULL,'Gift from Hartwell Lab, who got it from Brachmann et al. Yeast 1998 14:115-132.','S288c','MATb',NULL,NULL,NULL,'lys2∆0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann et al. Yeast 1998 14:115-132.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(7,'BY4741','2005-10-11','Gift from Gilson Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,'his3∆1','leu2∆0',NULL,NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02','met15∆0','Gift.or.Purchased',NULL,NULL,NULL,NULL),(8,'BY4742','2005-10-11','Gift from Gilson Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATb',NULL,'his3∆1','leu2∆0','lys2∆0',NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(9,'BY4706','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02','met15∆0','Gift.or.Purchased',NULL,NULL,NULL,NULL),(10,'BY4707','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATb',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02','met15∆0','Gift.or.Purchased',NULL,NULL,NULL,NULL),(11,'BY4710','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,NULL,NULL,NULL,'trp1∆63',NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(12,'BY4711','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATb',NULL,NULL,NULL,NULL,'trp1∆63',NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(13,'BY4712','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,NULL,'leu2∆0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(14,'BY4713','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATb',NULL,NULL,'leu2∆0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(15,'BY4714','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,'his3∆200',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(16,'BY4715','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,NULL,NULL,'lys2∆0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(17,'BY4717','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa','ade2∆::hisG',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(18,'BY4725','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa','ade2∆::hisG',NULL,NULL,NULL,NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(19,'BY4726','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATb','ade2∆::hisG',NULL,NULL,NULL,NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL);
+INSERT INTO `strains` VALUES (1,'BY4700','2005-02-01','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,NULL,NULL,NULL,NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(2,'BY4709','2005-02-01','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATb',NULL,NULL,NULL,NULL,NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(3,'BY4719','2005-02-01','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,NULL,NULL,NULL,'trp1∆63','ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(4,'BY4724','2005-02-01','Gift from Gottschling Lab. Strain from ','S288c','MATa',NULL,NULL,NULL,'lys2∆0',NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(5,'BY4720','2003-05-06',NULL,'S288c','MATb',NULL,NULL,NULL,'lys2∆0','trp1∆63','ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann et al; Yeast 1998 14:115-132.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(6,'BY4716',NULL,'Gift from Hartwell Lab, who got it from Brachmann et al. Yeast 1998 14:115-132.','S288c','MATb',NULL,NULL,NULL,'lys2∆0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann et al. Yeast 1998 14:115-132.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(7,'BY4741','2005-10-11','Gift from Gilson Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,'his3∆1','leu2∆0',NULL,NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02','met15∆0','Gift.or.Purchased',NULL,NULL,NULL,NULL),(8,'BY4742','2005-10-11','Gift from Gilson Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATb',NULL,'his3∆1','leu2∆0','lys2∆0',NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(9,'BY4706','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02','met15∆0','Gift.or.Purchased',NULL,NULL,NULL,NULL),(10,'BY4707','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATb',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02','met15∆0','Gift.or.Purchased',NULL,NULL,NULL,NULL),(11,'BY4710','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,NULL,NULL,NULL,'trp1∆63',NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(12,'BY4711','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATb',NULL,NULL,NULL,NULL,'trp1∆63',NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(13,'BY4712','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,NULL,'leu2∆0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(14,'BY4713','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATb',NULL,NULL,'leu2∆0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(15,'BY4714','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,'his3∆200',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(16,'BY4715','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa',NULL,NULL,NULL,'lys2∆0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(17,'BY4717','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa','ade2∆::hisG',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(18,'BY4725','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATa','ade2∆::hisG',NULL,NULL,NULL,NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL),(19,'BY4726','2005-11-03','Gift from Gottschling Lab. Strain from Brachmann Yeast 14:115-132, 1998.','S288c','MATb','ade2∆::hisG',NULL,NULL,NULL,NULL,'ura3∆0',NULL,NULL,NULL,NULL,NULL,'Gift',NULL,NULL,NULL,'Brachmann Yeast 14:115-132, 1998.',NULL,NULL,NULL,'2006-11-02',NULL,'Gift.or.Purchased',NULL,NULL,NULL,NULL,'Saccharomyces cerevisiae');
 /*!40000 ALTER TABLE `strains` ENABLE KEYS */;
 UNLOCK TABLES;
 
@@ -1242,7 +1242,7 @@ DROP TABLE IF EXISTS `websession`;
 /*!40101 SET @saved_cs_client     = @@character_set_client */;
 /*!40101 SET character_set_client = utf8 */;
 CREATE TABLE `websession` (
-  `id_session` varchar(100) NOT NULL,
+  `id_session` varchar(255) NOT NULL,
   `login` varchar(40) NOT NULL,
   `time_limit` decimal(10,0) NOT NULL,
   `target_table` varchar(40) DEFAULT NULL,
