This is my first try at an UPDATE sql statement for my database.
This is an example of the PHP code phpmyadmin gives when I did a real update:
$sql = 'UPDATE `RTS_Updates` SET `Comment` = \'Put in Energizer battery..\' WHERE `FMFP_ID` = \'PINEH\' AND `Date_Valid` = \'2004-04-14\' AND `Comment` = \'Put in Energizer battery\' LIMIT 1 ;'
. ' ';
But in the place of Put in Energizer battery.. should be what is in the $Comment_new string that is passed from the form. In the place of PINEH should be $FMFP_ID, in the place of 2004-04-14 should be $Date_Valid and finally in the place of Put in Energizer battery should be $Comment_old.
How do I set this up properly? Many thanks.