I've been trying to crack this for hours, and it doesn't seem to like me, I'm trying to update a table, which was gonna be easy, I need to update the field joined so that when someone is accepted they no longer appear on the pending list.
$joinedquery = "UPDATE joining WHERE zonename='$newbieperson' SET joined='Y'";
$joinedresult = mysql_query($joinedquery);
mysql_close();
Now, I think the zonename is the wrong bit, the $newbieperson comes up ok on an echo, but I need to update it where its the same as the variable $zonename...
Desired Zone Name: </td><td><input type="text" name="zonename" size="15" maxlength="30" value="<?php echo $details["zonename"] ?>">
The above also works fine, its stuck in a table and the idea is it can be edited if needed, then submitted (which I think may work if I can solve the updating problem) and then updates the table. If anyone can point out what I've missed I'd be really grateful!
Thanks anyone.