in your output you have no club code so it doesn't know what to update
Hi Guys...
Thank you very much for being so helpful.
I can't believe that I've been such a 'dick head' !!!!
I couldn't see the wood for the trees.
I completely missed:
PHP Code:
WHERE club_code='$club_code'";
I have no excuse. I wish I had.
$club_code is defined at the top of the script: $club_code = "fr1195"; which is generated from: $club_code = "##[club_code]##";
from:
PHP Code:
//ADD CLUB CODE TO NEW CLUB INPUT FILE
$file_contents = file_get_contents($new_addclub);
$file_contents = str_replace("##[new_addclub]##","$new_addclub",$file_contents);
$file_contents = str_replace("##[club_code]##","$club_code",$file_contents);
file_put_contents($new_addclub,$file_contents);
Thank you for again for being so helpful. You prompted me towards the right direction.
__________________
The MAN, The MYTH, The LEGEND:
John C
________________________________
Support your local Country Music Club
Can you show us the entire script? Because we must not be seeing it all.
I have a very simple form, which is a double opt-in system for verification, for the user to fill in. When the user clicks on the verification link in their email, they are presented with a Verification Success page which includes a link to their individual input form. This is the basis for creating the first entry in the database.
After the first entry, the user can UPDATE their database entry with their details
This is pulled from the database, along with all the other variables:
$club_title = $_GET['club_title'];
Thank you once again for coming to my rescue.
__________________
The MAN, The MYTH, The LEGEND:
John C
________________________________
Support your local Country Music Club
Please DO NOT reply to this email. It is an unattended mailbox.
To validate your email address, please click the following link:
http://countrymusic.org.uk/clubs/fr_clubs/fr_admin/register-exec.php?your_phone=07989115251&your_email=j@in-uk.co.uk&status=1&club_name=Ranch_House&action=add&your_name=John_Doe&passwd=asda1234&m=3c4d583d63292f70aba39f853fa7a9e8
This link then returns a page with a link to open an input page for the user, and also creates the first entry into the database, using 'club_code' as the reference for all other updates.
If you do take a look at this, you will see that there is very little information.
The user can then fill in the boxes and update the database.
After updating the database, the form is returned with all the information filled in that is contained in the database.
I did it this way because I don't have to create a special update form.
This is as far as I have got.
The Review Web Page and Add Dates buttons don't work properly because I haven't managed to get round to coding them to automatically be created with the correct information to display the web page properly.
If you want to test it for yourselves, please go ahead. It is still in production so you can't do any harm.
Also, this type of project is a first for me, so any advise will be welcome.
BTW, I am doing this out of interest, and because I enjoy getting absolutely frustrated doing it. Although I hope the script will be used, I won't receive any reward at all for doing it. Most of the things on my web site are FREE.
Thanks.
__________________
The MAN, The MYTH, The LEGEND:
John C
________________________________
Support your local Country Music Club