Okay I can upload the file, write the directory into the database but I cant get it to display it? heres a selection of my code, tell me whats wrong please -
Code:
<table width="130" border="1">
<tr>
<td height="130"><img src="
<?php
$COOKIE=$_COOKIE['username'];
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("begamer", $con);
$result = mysql_query("SELECT profilepic FROM users
WHERE username='$COOKIE';");
while($row = mysql_fetch_array($result))
{
$row['profilepic'];
}
?> " width="100%" height="100%"></td>
</tr>
</table>