I have an upload page that sends infomation to a table in the database,
id, title, src, tn_src, discription etc.
all this information is then displayed on a page called image.php.
Once clicked on a small image in my index page it goes to image.php page showing the bigger image with all the information i uploaded around it. image.php has its own id so it can display different infomation depending on the small image clicked in index.php.
for example afer clicking on a small image it would go to:
http://localhost/fotostor/image.php?id=163
i have added a comment box to the image.php page this means no matter what small image you click on in index.php page the comments form is always there on the image.php page so the user can post a comment about the bigger image,
what i would like to do is insert the users comment to the database table next to my uploaded information, id, title, src, tn_src, discription [comments here]
what i was thinking was somet like this
Expand|Select|Wrap|Line Numbers
- $theQuery = “UPDATE images
- SET content = ‘” . $theMessage . “‘, date = ‘” . $theDate . “‘
- WHERE id = ‘” . pageid . “‘”;