分別植物品種
//print_r($_POST);
if($_POST["action"] == "Save")
{
unset($imagename);
if(!isset($_FILES) && isset($HTTP_POST_FILES))
$_FILES = $HTTP_POST_FILES;
if(!isset($_FILES['image_file']))
$error["image_file"] = "An image was not found.";
$imagename = basename($_FILES['image_file']['name']);
//echo $imagename;
if(empty($imagename))
$error["imagename"] = "The name of the image was not found.";
if(empty($error))
{
$newimage = "images/mangrove3/" . $imagename;
//echo " " ;
$result = @move_uploaded_file($_FILES['image_file']['tmp_name'], $newimage);
if(empty($result))
$error["result"] = "There was an error moving the uploaded file.";
}
}
?>
if(is_array($error))
{
while(list($key, $val) = each($error))
{
echo $val;
echo " \n";
}
}
?>
0) { // Show if recordset not empty ?>
0) { // Show if recordset not empty ?>
植物品種:
$type= $row_mangrove3['type'];
If ( $type == mangrove)
{echo '紅樹';}
else if ($type == nonmangrove)
{echo '非紅樹';} ?>
|