php - A library database -


so me , colleague have been assigned making library database lesson's assignement , make html database interface able perform tasks within database such inserting rows, deleting rows, finding rows etc.

we have created database, imported , problem in inserting elements it.

well example books table has many-to-many relationship authors table (where primary keys of each table isbn , authors id respectively) when want insert book it's authors in our db don't know how because in different tables. confused how put data single form in multiple tables different primary keys.

we have been trying find examples no avail.

even links tutorials , whatnot welcome.

server side code php.

thank much.

i have suggestions you,

  1. use drop down box subject names , populate thru subject table ,so select subject name in db.

  2. upon entering book details (all values in table , plus subject name),manually insert isbn authors table.

  3. on book user interface use dropdownbox publisher name (as many people don't remember publisher code) ,then on postback might pivk value publisher code value ="??".
    <select> <option value="code1234">sams publisher</option> </select>

  4. if add editor form of author ,publisher , book , subject in same page fields user enter , might confused ,but it's homework can ignore point , try best manage them on 1 page.

sample library db: enter image description here
source:


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -