edit

checklogin.php

//add2.php

function CloseEditForm()
{
window.opener.location.reload();
window.close();
location = \"main.php\";
}
CloseEditForm();
";
//echo " Add another user";
//echo "Close this Window";
//echo "";
}
?>

//main edit
Biofouling Information -   ";
echo "Biofouling uploaded by you    ";
echo "ImagePlaceTimeCommentsAction";

$query=mysql_query("SELECT *
FROM biofouling h, project_ass p
WHERE h.yid = p.pa_id
AND p.pa_id = '".$_SESSION['UserID']."'
ORDER BY h.yid ASC
");

while($display=mysql_fetch_object($query))
{
$id=$display->id;
//$image=$display->image;
$place=$display->place;
$time=$display->time;
$comments=$display->comments;

echo "image\" width=100 height=100>$place$time$comments
View/Edit    Delete";

}
echo "";

echo "Nio conference
function popup_adduser()
{
window27711 = window.open('add.php',\"window27711\"
,\"location=0,scrollbars=yes,menubar=0,toolbar=0,status=0,resizable=1,directories=0,left=50,top=50,width=700,height=400\");
}

function popup_edit(eid)
{
window27711 = window.open('bioedit.php?eid='+eid,\"window27711\"
,\"location=0,scrollbars=yes,menubar=0,toolbar=0,status=0,resizable=1,directories=0,left=50,top=50,width=600,height=800\");
}

function popup_delete(did)
{
answer = confirm(\"Do you really want to delete user?\");
if (answer !=0)
{
location = \"deletebio.php?did=\"+did;
}
}
//edit

function CloseEditForm()
{
window.opener.location.reload();
window.close();
location = \"main.php\";
}
CloseEditForm();
";
}
else
{
$id=$_GET['eid'];

$query=mysql_query("select * from biofouling where id=$id") or die("Database Error Occured. title is not selected.");
while($r=mysql_fetch_object($query))
{
$image=$r->image;
$place=$r->place;
$time=$r->time;
$comments=$r->comments;

break;
}
echo "Note:-- 1> Maximum upload size should be less than 2 mb size 3> Only jpeg/jpg images should be uploaded ";
echo "";
//echo "";
echo "";

//UPLOAD Image
echo "
Upload an image: ";

echo "Place:                
$place";

echo "Time                  
$time";

echo "Comments        
$comments";

echo "";
}

?>