Dear Sir/Madam,
I use a mysql database on the web and use php to get information from it.
Now I want to use pictures/images in the database. I've included a php script
The information I get from the mysql database in a while statement. My question is,
how do I get the picture available on the web, must I put this in the mysql-database
and how do I do this?
If anyone can help me, than I hope to get an e-mail from you at: [EMAIL PROTECTED]
Thanks,
Johan.
Student
<?
require ('connect2.php');
echo "<html>";
echo '<body bgcolor="#FFFFFF" text="#000000" background="Afbeelding1.jpg"
bgproperties="fixed">';
Echo "<h2>Het Sportprogramma 2001</h2>";
echo "<br>";
$result = mysql_query ('SELECT * from Programma')
or die ("Invalid query");
echo '<table border="2" width="100%">';
while ($row=mysql_fetch_row($result)){
echo '<tr><td width="16%">';
echo "$row[5]";
echo "</td>";
echo '<td width="16%">';
echo "$row[6]";
echo "</td>";
echo '<td width="16%">';
echo "$row[4]";
echo "</td>";
echo '<td width="16%">';
echo "$row[1]";
echo "</td>";
echo '<td width="16%">';
echo "$row[2]";
echo "</td>";
echo '<td width="16%">';
echo "$row[3]";
echo "</td></tr>";}
echo "</table>";
mysql_close ($link);
echo "</body>";
echo "</html>";
?>