I can't seem to display the image..
Here is my code..
<?php
$user='root';
$server='localhost';
$db='db_gamecube';//database name
mysql_connect('localhost','root');
mysql_select_db($db);
$pass=$_POST['password'];
$uname=$_POST['uname'];
$sql="select * from tb_register where
username ='$uname' and password='$pass'";
$result= mysql_query ($sql) or die (mysql_error());
if(mysql_num_rows($result)==1)
{
session_start();
$_SESSION['guest']=$uname;
echo "<form method ='post' action='login_edit.php'>";
$records=mysql_fetch_assoc($result);
echo "<table border =10>
<tr>
<td><div align ='left'><body><h2>
<font color='white'>Name : $records[FirstName] $records[LastName]</font></h2>
</td>
</tr>
<input type=submit value=Submit name=submit></body></div>";
echo "<img src=image.php?username=".$records['username']." width=100% height=100%/>";
?>
<img src=image.php?username=".$records[username]." width=100 height=100/>";
the name of the image field on mysql is 'aphoto'
this is like a profile picture display.
please would you fix this code for me?..hoping to find results and advance thank you.