Please Go Back and Enter Plant Name

"; exit(""); } else if($_GET['id'] == "") { //print $_POST['plant_id']; $chk_id = $_POST['plant_id']; } else if($_POST['plant_id'] == "") { //print $_GET['id']; $chk_id = $_GET['id']; } ?> "; // MAIN TABLE 1st ROW print ""; print "
"; left_menu(); print ""; print " "; print ""; //SUB TABLE print ""; //AMRUTH HOME GARDEN IMAGE print ""; print ""; print ""; print ""; //TITLE :AMRUTH HOME GARDEN print ""; if($_SESSION['Type']=='Home') print ""; elseif($_SESSION['Type']=='All') print ""; print ""; // REQUIRED FOR FORMATTING print ""; print " "; $q = "SELECT * FROM botmast WHERE plant_id='".$chk_id."'"; $r = mysql_query($q); $o = mysql_fetch_object($r); //PLANT NAME (GENUS SPECIES) print ""; print ""; //SMALL IMAGE & OTHER DETAILS print " "; print ""; print ""; print ""; print "
"; print "
Amruth Home GardenAmruth Institutional Garden
"; //FETCH PLANT NAME $genus = fetch_me("botmast","genus","plant_id",$o->plant_id); $species = fetch_me("botmast","species","plant_id",$o->plant_id); $plant_name = $genus." ".$species; //FETCH KANNADA NAME $q1 = "SELECT ver_names.NAME FROM ver_names inner join botmast on ver_names.plant_id = botmast.plant_id WHERE botmast.plant_id='$o->plant_id' AND lang_name='Kannada' "; $kan_name =fetch_me_new($q1); //TABLE FOR PLANT DETAILS print ""; print " "; //DISPLAY KANNADA NAME (SCIENTIFIC NAME) print ""; print ""; print ""; //VERNACULAR NAMES print " "; print ""; print ""; print ""; print ""; print "
 $kan_name ( $plant_name )
  "; print "
    "; $ver_q = "SELECT * FROM ver_names WHERE plant_id = $o->plant_id"; $res = mysql_query($ver_q); while($rw = mysql_fetch_object($res)) { if($rw->NAME!='XXX') { print "
  • $rw->NAME ($rw->Lang_tag)
  • "; } } print "
"; print "
".stripslashes($o->description)."
 
"; print "
"; $path = "../images/n_$o->plant_id.jpg"; if(file_exists($path)) { print ""; } print "
"; // CLOSE TABLE FOR PLANT DETAILS print "
 "; $path_sm = "../images/sm_$o->plant_id.jpg"; if(file_exists($path)) { print ""; } //HOW TO GROW if($o->grow!="") { print " How to Grow: ".stripslashes($o->grow)."
"; } //CARE AND REGIME if($o->regime!="") { print "
Care regime:
".stripslashes($o->regime)."


"; } //PARTS USED if($o->parts_used!="") { print "

Parts Used: $o->parts_used

"; } if($o->collection!="") { print "

Collection :".stripslashes($o->collection)."

"; } print "
"; print "
"; //CLOSE SUBTABLE print ""; print ""; print ""; //MAIN TABLE //DISPLAY COPYRIGHTS display_copyrights(); ?>