The following will show you how to prevent spam without the use of those annoying captcha images. I use javascript, which according to W3C, approximately 95% of the people browsing the web have it enabled. The odds of one of your visitors having it disabled is slim. If it does concern you however, you could always place a notice to turn on javascript before using the form or you could always use another method, just place the other method in
tags.
Below is how you could prevent spam with simple javascript.
To insert data into a MySQL database field while preserving the existing data in that field, simply concatenate the new data to the end of the existing data.
Below is an example of how to do this using the field "changelog".
UPDATE table1 SET changelog = CONCAT(changelog, "new data" ) WHERE id = 'idnumber';
If you would like the data that you are entering to appear at the beginning of the existing data, simply flip the concatenation, example:
I have several sites where I use a pop up table to display information if the user rolls over and image.
Example, if the user wants to view notes on a certain client, they can roll over a little "note" image to view the notes about the client pulled from a SQL database.
Let's say that you have a bunch of data in a recordset and you want to populate that data into a list of variables. In my example we will draw 20 items from a players inventory from a MySQL table which stores all the items for a player in rows we call slot_1, slot_2, slot_3, … all the way to 20. So when we pull all of the items from the MySQL table we want to assign them to variables respectively. For example, our variable of "slot_1" that we are creating will equal "slot_1" from the MySQL table.