Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 880 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 880 Rev 890
Line 40... Line 40...
40
	SELECT id_observation, nom_sel, nom_sel_nn, nom_ret, nom_ret_nn, nt, famille, nom_referentiel
40
	SELECT id_observation, nom_sel, nom_sel_nn, nom_ret, nom_ret_nn, nt, famille, nom_referentiel
41
        FROM `cel_obs`
41
        FROM `cel_obs`
42
        WHERE nom_sel IS NOT NULL AND nom_sel != '' AND
42
        WHERE nom_sel IS NOT NULL AND nom_sel != '' AND
43
		id_observation BETWEEN %d AND %d AND
43
		id_observation BETWEEN %d AND %d AND
44
		( nom_ret IS NULL or nom_ret = ''
44
		( nom_ret IS NULL or nom_ret = ''
45
		  OR nom_ret_nn IS NULL or nom_ret_nn = 0 or nom_ret_nn = ''
-
 
46
		  OR nt IS NULL or nt = 0 or nt = ''
45
		  OR nt IS NULL or nt = 0 or nt = ''
47
		  OR famille IS NULL or famille = '' )
46
		  OR famille IS NULL or famille = '' )
48
	LIMIT %d, %d
47
	LIMIT %d, %d
49
EOF;
48
EOF;
-
 
49
// non: car nom_ret_nn peut-être légitimement à 0 [taxon identifié, sans nom_retenu]
-
 
50
// OR nom_ret_nn IS NULL or nom_ret_nn = 0 or nom_ret_nn = ''
-
 
51
 
Line 50... Line 52...
50
 
52
 
51
array_shift($argv);
53
array_shift($argv);
52
$start = array_shift($argv);
54
$start = array_shift($argv);
53
$max = array_shift($argv);
55
$max = array_shift($argv);