PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
echo '<div><img src="'.$this_file.'" /></div>'; // This is the actual image
My attempt number 1, but does not work
echo '<div><img src="'.$this_file.'"/></div>' width='200', height='300' onclick="openFullSize(this.src,'This is a description')">
My attempt number 2
echo <IMG SRC="<?php echo $this_file ?>" WIDTH="268" HEIGHT="176" BORDER="0" ALT="" />
#1 won't work because the markup is all wrong. #2 will show the resized version but obviously doesn't have anything to display the full version when clicked.
Assuming you have an openFullSize() function somewhere already, the corrected markup for #1 is