I have the following results coming up on my page:
$glossary = "SELECT * FROM glossary WHERE authorisation='n' ORDER BY 'item' ASC";
$glossaryResults = mysql_query($glossary);
while ($glossaryRow = mysql_fetch_array ($glossaryResults)){
$Item = $glossaryRow["item"];
$Description = $glossaryRow["description"];
echo"
<tr>
<td>$Item</td>
<td>$Description</td>
<td><a href='change.php'>Authorise</a></td>
</tr>";}
What can I put in change.php in order to change one of the fields in the database?
change.php:
$res= mysql_query ("INSERT INTO glossary (authorisation) VALUES ('y') WHERE authorisation='n'");
Obviously I only want to change the certain ones that I click on (Authorise), if I don't click on some of them then I don't want the data to change.
Would love some help on this please???