Sorry to bring this back from the dead, but I have not had a chance to really work on it since I posted.
What I did, was in order to test was create a new table within my database called 'pictures'
In this table, I have 3 fields: id, name, pathtoimg.
The id is auto-increment, the name is self explanatory, and the pathtoimg is the path to the pictures. I have entered like: 'C:\site\test.jpg'
I have this as 'pics.php'
<?
//connect to database using the mysql_connect function()
//This is your host and then your username and then finally your password
$db = mysql_connect("localhost","user","password");
//The function mysql_select_db() sets the current
//database to the one specified in this case "test"
mysql_select_db("bioimages" ,$db);
//mysql_query() execute the specified MySQL query in this case
//we are are storing this in the variable $sql
$sql = mysql_query("SELECT * FROM herbplants order by 'Scientific Name'" ,$db);
//now we wil start producing a table
echo ("<table border ='1'>");
//this part displays our headings
echo ("<tr><td>ID Number</td><td>Scientific Name</td><td>Common Name</td><td>Family Name</td><td>Page Number in Guide</td><td>Start Bloom</td><td>Stop Bloom</td><td>Origin</td><td>Synonyms</td><td>Picture</td></tr>");
//the mysql_fetch_row() function fetches the next row in the resultset
//and stores this in an array , in this case $tablerows
while ($tablerows = mysql_fetch_row($sql))
{
//we now finish our table off by inserting values into each
//column . $tablerows[1] is equivalent to our url field and
//$tablerows[2] is the description field
echo("<tr><td>$tablerows[0]</td><td>$tablerows[1]</td><td>$tablerows[2]</td><td>$tablerows[3]</td><td>$tablerows[4]</td><td>$tablerows[5]</td><td>$tablerows[6]</td><td>$tablerows[7]</td><td>$tablerows[8]</td></tr> ");
}
echo "</table>";
//close database (good practice)
mysql_close($db);
?>
Now it shows the path output as a field, but how do i make it 'translate' the path into a picture?
I would be very appreciative if someone could help me out, as I kind of need to figure this out tonight.
Thanks a ton.
-aaron