Jump to content

Recommended Posts

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 ! 
Link to comment
https://forums.phpfreaks.com/topic/19697-simple-php-problem-i-think/
Share on other sites

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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.