A
Anonymous
Guest
right, this is a working bit of code that displays a thumbnail image from a path in mysql.
*****************************
<?php
$conn= @mysql_connect("localhost","gworsnup","bracknell")
or die("Err:Conn");
$rs= @mysql_select_db("kriminalyouth", $conn)
or die("Err
b");
$query = mysql_query("SELECT * FROM images ");
while ($result = mysql_fetch_array($query))
{
echo "<a href=\"".$result['pic_path']."\">
<img src=\"".$result['thum_path']."\"></a><br>";
}
?>
******************************
It works fine. But brings the main image up in a blank explorer window.
I want the image to be displayed in a designated page called "display.php or html" so that i can also display other info about the image like size, etc.
Please could you start me on my way??????
*****************************
<?php
$conn= @mysql_connect("localhost","gworsnup","bracknell")
or die("Err:Conn");
$rs= @mysql_select_db("kriminalyouth", $conn)
or die("Err
$query = mysql_query("SELECT * FROM images ");
while ($result = mysql_fetch_array($query))
{
echo "<a href=\"".$result['pic_path']."\">
<img src=\"".$result['thum_path']."\"></a><br>";
}
?>
******************************
It works fine. But brings the main image up in a blank explorer window.
I want the image to be displayed in a designated page called "display.php or html" so that i can also display other info about the image like size, etc.
Please could you start me on my way??????