Got myself a bit stuck right now. Basically the code is outputting a table, with the data coming from my database. It essentially outputs a list of top ten songs. Each also has its own delete and update button. My problem is whenever I click delete it is not recognising which record I am clicking delete on, it simply takes the value of $pid to be what it was when it was last output.
In my mind I thought putting them into an array would solve it but I dont think it will. How can I get these buttons to recognise to which record they're associated or change the delete button to see this.
The code that concerns this is line 36 to 45 or so.
http://pastebin.com/eZwAmNH2
In my mind I thought putting them into an array would solve it but I dont think it will. How can I get these buttons to recognise to which record they're associated or change the delete button to see this.
The code that concerns this is line 36 to 45 or so.
http://pastebin.com/eZwAmNH2