Skip to content
Browse files

Merge feline:/www/htdocs/t3/wheat

  • Loading branch information...
2 parents 0ed2d81 + 5005b8a commit a1154bb5aa2f31930863024adcbf2e400b24390a @Dave-Matthews committed Aug 14, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 curator_data/input_line_names_check.php
View
5 curator_data/input_line_names_check.php
@@ -160,12 +160,11 @@ function update_database(filepath, filename, username) {
}
$bp = $linedata['cells'][3][2];
// Test whether this program is already in the database.
- $sql = mysql_query("SELECT distinct breeding_program_code from line_records");
+ $sql = mysql_query("SELECT distinct data_program_code from CAPdata_programs");
while ($row = mysql_fetch_row($sql))
$bpcodes[] = $row[0];
if ((in_array($bp, $bpcodes) === FALSE) OR (strlen($bp) == 0) ) {
- //die("Breeding Program Code \'$bp\' is not in the database. <a href=\"$config['base_url']all_breed_css.php\">Show codes.</a>");
- die("Breeding Program Code '$bp' is not in the database.<br><br>");
+ die("Breeding Program Code '$bp' is not in the database. <a href=\"".$config['base_url']."all_breed_css.php\">Show codes.</a><br><br>");
}
/*

0 comments on commit a1154bb

Please sign in to comment.
Something went wrong with that request. Please try again.