Hi,
Well I think I am nearly there I have managed to insert some image blobs into mysql and call them with php in a browser
The only proble is they are getting desplayed a ASCII TEXT rather than as images.
Any idea folks ?
<html>
<?php
$db = mysql_connect("localhost", "user", "passwd")
or die ("cant connect to the DB");
print ("You have connected to database successfully");
?><html><br><br><?php
echo date("D M d, Y", time());
?><html><br><br><?php
mysql_select_db("test",$db);
$query = "SELECT * FROM image";
$result = mysql_query($query);
$numrows = mysql_num_rows($result);
{
echo "There are $numrows user(s) in the database, they are";
}
?><html><br><br><?php
echo "<table border=1>\n";
echo "<tr><td>Name</td><td>e-mail</tr>\n";
while ($myrow = mysql_fetch_row($result)) {
printf("<tr><td>%s %s</td><td>%s</td></tr>\n",
$myrow[1], $myrow[2], $myrow[3]);
}
echo "</table>\n";
?>
</html>