Hello everyone,
I read in some tutorials that the best way of storing the images would be in the file(directory) rather than in the database.So, I made a directory called images and i placed all the images there.Fine, now in a table where i've the image column, I provided the link - like: /images/mypic.jpeg
When i view my page, it neither display the image nor the ugly red cross mark insted i get the path which i've written there.
Did I miss anything??I've this code so far........
$sql="SELECT image,telephone,email,description FROM tbl_personals ORDER BY id";
$mysql_result=mysql_query($sql,$connection);
$num_rows=mysql_num_rows($mysql_result);
while ($row=mysql_fetch_array($mysql_result))
{
$var_3=$row["image"];
$var_4=$row["telephone"];
$var_5=$row["email"];
$var_6=$row["description"];
echo "
<table border='1' width='100%' bordercolor='#000000' bgcolor='#C0C0C0'>
<tr>
<td width='50%'>$var_5</td>
<td width='50%' rowspan='4'>$var_6</td>
</tr>
<tr>
<td width='50%'>$var_3</td>
</tr>
<tr>
<td width='50%'>$var_4</td>
</tr>
</table>";
Thanks once again.