I'm making a portfolio site for my graphic design work, so I've created a mySQL database to store all the image and project information. I was hoping that in the design all the image thumbnails would be displayed in a grid, and once clicked, each image would toggle a div that would house a larger image and description of the project. I've gotten all the images to display correctly, but I can't figure out how to get the toggle to work. Right now -something- happens when an image is clicked, but none of the content is showing up, and it's not reversible like a toggle should be.
Also, I don't really know how I'm going to get each image to display its corresponding description when clicked, and ONLY that description, as opposed to one click making all the toggles for each image fire off at once. I've got a little 'i' variable going on with the reasoning that it will count up with each image and thus assign each image a unique id that can be called, but I'm not sure what to do with it now that I've got it... (can you tell I've been using PHP for like, a week). But perhaps that's a question better asked in the PHP forum.
If you're interested in looking at the weird thing it's doing right now, here's my testpage:
Here's my code: