Hi 🙂
It's working great, I would like to add a link to the individual image using javascript, to open a window to cvdata1.php
is this ok for the script?
<script type="text/javascript">
function open_win(img){
window.open("cvdata1.php?search="+img);
</script>
and a link:
http://www.mysite/myfolder/cvdata1.php?search=Bloom_Name
<?PHP
mysql_connect("localhost", "xxxx_xxx", "xxxxx") or die(mysql_error());
mysql_select_db("xxxx_xxxxx") or die(mysql_error());
$sql = "SELECT * FROM `seedling` ORDER BY `id` DESC LIMIT 40";
$results = mysql_query($sql);
print "<table>";
$column = 1;
while(($row = mysql_fetch_assoc($results)) !== false) {
if ($column==1) { print "<tr>"; }
print "<td>";
print "<img src=\"http://www.mysite/myfoòder/";
echo $row['Bloom_Name'];
print ".jpg\" width=150 height=150><br>";
echo $row['Bloom_Name'];
print "</td>";
if ($column==5) { print "</tr>"; $column=0; }
$column++;
}
print "</table>";
?>