the above script retrieves info from a mysql database and uses the info to display images on a page. I need to add some funcitonality that when a images are clicked on a larger images is displayed in a clickable slide show format#!/usr/bin/perl use CGI; use strict; use DBI(); my $q=new CGI(); my $dbh = DBI->connect("DBI:mysql:bthcraft", "#######", "#########"); print " Can't connect to database\n" if ! defined $dbh; my $nme=$q->param('name'); my $stht = $dbh->prepare("SELECT * FROM images where username = '$n +me'"); $stht->execute(); print $q->header(); print $q->start_html('display'); while (my @dat=$stht->fetchrow_array()) { print "<INPUT TYPE=IMAGE NAME=image height='100' width='100' SRC='http://typhoon.he.net/~bthcraft/$dat[0]/images/$dat[1]' >"; } print $q->end_html; $stht->finish; $dbh->disconnect;
any help would be appreciated
JOHN LARSON
Code tags - dvergin 2003-12-03
In reply to clickable slide show perl by jwlarson3rd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |