hi guys,
I have this code to display my images and other data from my database using php... but the two just wont display.One displays and the other doesn't.I don't know what to do....could someone please help me out?
my e-mail:dickrichus@hotmail.com
and this is the code:
$sql=("select * from binary_data");
$result=mysql_query($sql) or die(mysql_error());
for($i=0;$i<mysql_num_rows($result);$i++)
{
$row=mysql_fetch_array($result);
$tableid=$row['id'];
if($id == $tableid)
{
echo mysql_result($result, 0 ,"bin_data");
<html>
<body>
<table width="100%" hieght="100%" border="2" bordercolor="pink">
<th>
<?php echo "<h2>Item was found</h2><br />"; ?>
<th>
<tr>
<td><?php header("Content-type: mysql_result
($result, 0 ,'filetype')");?>
</td>
</tr>
<tr>
</tr>
<tr>
<td><?php echo "id: <b>$tableid</b><br />"; ?></td>
</tr>
<tr>
<td><?php echo "description: <b>$row[description]</b><br />"; ?></td>
</tr>
<tr>
<td><?php echo "file name: <b>$row[filename]</b><br />"; ?>
</td>
</tr>
<tr>
<td><?php echo "file size:<b>$row[filesize]</b><br />"; ?></td>
</tr>
<tr>
<td><?php echo "file type <b>:$row[filetype]</b><br />"; ?></td>
</tr>
<?php die(mysql_error());?>
}
};
Thank you very much.