is there a way to link an image displayed to a function? here's my code:
function showThumbs(){
include("header.php");
opentable();
echo "<table>";
$result = mysql_query("SELECT * FROM nuke_Submit_Art WHERE category = 'painting'");
if ($result){
if (mysql_num_rows($result) > 0){
while ($row = mysql_fetch_assoc($result)){
echo "<tr><td><img src=\"{$row['thumbPath']}\"></td>\n";
echo "<td>{$row['imageID']}</td></tr>\n";
}
}
}
echo "</table>";
closetable();
include("footer.php");
}
function showPage(){
}
switch($func) {
default:
showThumbs();
break;
case:
showPage();
break;
}
?>
I'm doing for a phpnuke module, but I don't think that should enter into it. I want so when the user clicks the thumbnail, it will bring up the showPage() function, which I haven't finished yet. Thanks.