rskidorz Posted September 4, 2006 Share Posted September 4, 2006 Hi there, 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 ! Quote Link to comment Share on other sites More sharing options...
rskidorz Posted September 4, 2006 Author Share Posted September 4, 2006 For some reason I can't attach the PHP files... anyone got any ideas ? Quote Link to comment Share on other sites More sharing options...
rskidorz Posted September 4, 2006 Author Share Posted September 4, 2006 Got them hosted here : http://ben.iteachers.eu/files/index.phphttp://ben.iteachers.eu/files/artist.phphttp://ben.iteachers.eu/files/edit_artist.php Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 4, 2006 Share Posted September 4, 2006 Rename those files so they have a phps extension, that way we sould be able to see the source code of those files. Or save them as normal textfiles. Otherwise we cant see no source code, cant download them as it just downloads them as a blank file. Quote Link to comment Share on other sites More sharing options...
rskidorz Posted September 4, 2006 Author Share Posted September 4, 2006 Hi there , Got those properly uploaded now :http://www.5ilby.karoo.net/index.phpshttp://www.5ilby.karoo.net/artist.phpshttp://www.5ilby.karoo.net/edit_artist.phpsAny ideas ? Quote Link to comment Share on other sites More sharing options...
rskidorz Posted September 5, 2006 Author Share Posted September 5, 2006 Is the solution to this simple ? Quote Link to comment Share on other sites More sharing options...
rskidorz Posted September 6, 2006 Author Share Posted September 6, 2006 Sorry to be a pain but does anyone know how to do this ? Quote Link to comment Share on other sites More sharing options...
rskidorz Posted September 9, 2006 Author Share Posted September 9, 2006 I know it looks like nagging but I just wondered if anyone knew a solution to this problem please? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.