Jump to content

Archived

This topic is now archived and is closed to further replies.

rskidorz

Simple PHP Problem I think ??!

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 ! 

Share this post


Link to post
Share on other sites
Got them hosted here :

http://ben.iteachers.eu/files/index.php
http://ben.iteachers.eu/files/artist.php
http://ben.iteachers.eu/files/edit_artist.php

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Hi there ,

Got those properly uploaded now :

http://www.5ilby.karoo.net/index.phps
http://www.5ilby.karoo.net/artist.phps
http://www.5ilby.karoo.net/edit_artist.phps

Any ideas ?

Share this post


Link to post
Share on other sites
I know it looks like nagging but I just wondered if anyone knew a solution to this problem please?

Share this post


Link to post
Share on other sites

×

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.