if(move_uploaded_file($_FILES, $target))
{
echo "The file ". basename( $_FILES). " has been uploaded";
echo '<a href="login_success.php">Back</a>';
}

In the above code you have mentioned it.Then when u click the back button where it will go..In which page you want to display the table.
You want to display the table in same upload2.php file?

i need to display it in the upload.php page.

<html>
<body>
<form enctype="multipart/form-data" action="upload2.php" method="POST">
<table>
<tr>
<td><img src="Logofinalcopy.gif"></td>
</tr>
</table>
<table>
<br><br>
<tr>
	<td>
		<strong>Please choose a file: </strong>
	</td> 
	<td>
		<input name="uploaded" type="file"><br>
    </td>
</tr>
<tr><td>
<input type="submit" value="upload"></td></tr>

</table></form></body></html>
<?php
ob_start();
@session_start();
require_once ("check.php");
$con=mysql_connect("10.70.1.50","invensis","invensis");
if(!$con)
    {
             die('Could not connect: ' . mysql_error());
    }
mysql_select_db("database_myproject",$con);


?>
<html>
<body>
<table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 500px">
<tr>
<th>filename</th>
<th>uploadedby</th>
<th>uploadeddate</th>
<th>size</th></tr>
<tr><td><?php 

?></td>

<tr>
<?php
     $filename=$_REQUEST[i]
?>
<td><?php  echo $filename;?></td>
<td><?php echo $username; ?></td>
<td><?php echo date("Y-m-d");?></td>
<td><?php ?> </td></tr>

</table></body></html>

In href change the login_success.php to upload.php.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.