A little bit of everything…
RSS icon Home icon
  • Saving multiple selections from drop down list to database

    phpThis post will teach you how to process and store multiple selections from a form element into a MySQL database, using PHP. In order to understand how it works, you will need basic knowledge of PHP arrays, because they’re necessary for achieving the results.

    If you still don’t know what arrays are and how do they work, read Tizag’s array tutorial first.

    Read the rest of this entry »

  • Populating a dynamic drop down menu from a MySQL database

    This PHP code snippet retrieves the data in a specific column of each row in a MySQL table. The retrieved data is echoed to the DOM and displayed as options of a drop down menu. The options of the drop down menu are dynamic, as they will change automatically every time the information in the database is modified.

    Read the rest of this entry »