Simple PHP Problem I think ??!
Posted 04 September 2006 - 07:19 PM
I';m new to PHP/MySQL and have started learning recently for university. I am doing OK however I have recently approached a problem.
I am following a tutorial from a book where a SQL database maintains the details of artists and albums. The initial page "index.php" contains a list of the current artists within the database and the opportunity to add a new artist to the list with a form at the bottom of the page. It is possible to view the artists albums by clicking on the view buttton next to the artist which will direct to "artist.php" showing the artist name and album title if applicable. From this page it is also possible to edit artist name through "edit_artist.php" or to add an album. All works OK until you try to add a second album for an artist, or try to Edit after an album already exists for the artist. I figure the problem is that once an album is added the Artist ID field is not being passed on to edit_artist.php or to the form when atempting to add a new CD.
I appreciate the solution is probably quite simple and I must have overlooked a minor detail.
I enclose all files concerned and would appreciate any help as this is really bugging me !
Posted 04 September 2006 - 07:24 PM
Posted 04 September 2006 - 10:08 PM
Posted 06 September 2006 - 08:37 AM
Posted 09 September 2006 - 11:10 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users