<?php
	session_start();
	session_destroy();
	$link=mysql_connect("localhost", "root")
	or die("could not connect to database server");
	mysql_select_db("ramones", $link) or die(mysql_error());

	$file= $_FILES['image'] ['tmp_name'];

	$image=addslashes(file_get_contents($_FILES['image'] ['tmp_name']));
	
	$image_name= addslashes($_FILES['image'] ['name']);
	
	$image_size=getimagesize($_FILES['image'] ['tmp_name']);
	
	if($image_size==FALSE)
	{
		echo "<script language='javascript'>
		alert('That's not an image!!')		
		</script>";
	}
	else
	{
		if(!$query= mysql_query("INSERT into imageupload('','$image_name','$image')"))
		{
			echo "<script language='javascript'>
		alert('Problem uploading image!!')
		</script>";
		
		}
		else
		{
		$lastid= mysql_insert_id();
		//	echo "<img src=get.php?id=$lastid />";
		
		}
		
	}
	
?>

<html>
<title> Ramones </title>
<head>
<link rel="stylesheet" type="text/css" href="default.css" />

</head>
<body>

<div id="nav">
<ul>
	<li><a href="index.php">Home</a></li>
	<li><a href="Profile.php">Profile</a></li>
	<li><a href="contactus.php">Contact us</a></li>
	<li><a href="logout.php">Log out</a></li>
	
</ul>
</div>

<div id="wrapper">

<div id="container">

	<div id="content">
		<div id="sidebar">
			<div class="widget">
	<div class="widgettitle">
	<h2>Pages</h2></div>
	<ul>
	<li><a href="index.php">Home</a></li>
	<li><a href="Profile.php">Profile</a></li>
	<li><a href="contactus.php">Contact us</a></li>
	<li><a href="logout.php">Log out</a></li>
	<li><a href="#">Sitemap</a></li>
	</ul>
</div>
<div class="widget">			
<div class="textwidget">
<center>
<a href="#">
<img  width="80px"  src="http://ghostcallers.com/wp-content/uploads/2012/05/fb.png"/></a>

<a href="#">
<img width="80px" src="http://ghostcallers.com/wp-content/uploads/2012/05/tw.png"/></center></a></div>
	</div>
	</div>
		<div id="article">

					
			<h2 class="title">Profile</h2>	
			
		<div style="float: left; 
			padding: 3px 3px 3px 3px;
			background:black;
			width:300px;
			height: 300px;
			border-radius: 10px;
			margin-bottom: 10px;
			margin-top: 10px;
			margin-right: 20px;">
			<img src="http://assets.diylol.com/hfs/1d8/7d7/f4c/resized/like-a-sir-birthday-meme-generator-a-190d11.jpg"
				style="width:290px;
				height: 290px;
				padding:5px 5px 5px 5px;"/>
		</div>
		<div style="line-height:30px; margin-bottom: 5px; position: relative;margin-top:5px;">
	<span class="pName">  <h6 class="pName"> Onin Ramones</h6>  </span>
	<span class="pAge"> Age &nbsp; &nbsp; &nbsp; &nbsp;  :  <span><h6 class="pAge"> 21</h6> </span> </span><br/>
	<span class="pEmail">   Email &nbsp; &nbsp; &nbsp; :<span> <h6 class="pEmail">onin@yahoo.com</h6></span>  </span><br/>
	<span class="pAdd">   City &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; : <span><h6 class="pAdd"> Cebu City</h6> </span> </span><br/>
	<span class="pBday">  Birthday &nbsp;  : <span><h6 class="pBday"> November 39, 1991</h6> </span> </span><br/>
	<span class="link"> <a href="#'">Edit Profile</a></span>
	</div>

	
				<p>Ghostcallers UK conduct and organise ghost hunts and paranormal events all over the UK. Investigating locations at Castles, Inns and Pubs, Manor Houses,  plus many more haunted locations.</p>
<p>We can also organise and host corporate events.<br />
These can be suited to your budget and we will ensure you that the location investigated won,t be forgetten in a hurry.</p>
<p>There are no actors or tricks connected with at any of our events what you see, hear, feel or experience is 100% genuine paranormal activity  and is entirely your experience.</p>
<p>Ghostcallers UK was founded in 2007 by ordinary people with a passion for the paranormal and the belief that there really is life after death. After experiencing Ghost hunting with various other paranormal teams that gave the public a limited experience of Ghost hunting up close and personal it was decided  Ghostcallers UK should be formed to offer Ghost hunts which are affordable to the general public and value for money for the seasoned ghost hunter in us all.</p>
<p>3 years and numerous ghost hunts later Ghostcallers Uk are still going strong giving you our clients no frills ghost hunting at it,s very best.</p>
<p>All our events are held at locations that have had ghostly activty and we certainly don,t try to pull the wool over your eyes to justify this don,t just take our word for it join us on an event to discover for yourself the thrill and exitement of ghost hunting we&#8217;re sure your laughter will soon turn to screams.</p>
	
				<div class="clear"></div>
				
					
		</div>
<div id="footer">
	<small>Copyright &copy; 2012 Philippe Ramones. All Rights Reserved. | 
	<a href="#">Sitemap</a> | 
	<a href="#">Related details</a></small>


</div>
	</div>
	<!-- END CONTENT -->
</div>
<!-- END CONTAINER -->
<div  class="clear"></div>

</div>

<!-- END WRAPPER -->
</body>

</html>