OK,
I've tried every combination and method ... addslashes ($whatever) doesn't work in either a MySQL update statement or in an assignment statement ... what gives here ?
Any help is appreciated:
$howwasday = addslashes($howwasday);
$query = "UPDATE $usertable2 ".
"SET goal1 = '$goal1', ".
"goal1achieved = 'N', ".
"goal2 = '$goal2',".
"goal2achieved = 'N', ".
"goal3 = '$goal3',".
"goal3achieved = 'N', ".
"goal4 = '$goal4',".
"goal4achieved = 'N', ".
"goal5 = '$goal5',".
"goal5achieved = 'N', ".
"thankful1 = '$thankful1', ".
"thankful2 = '$thankful2', ".
"thankful3 = '$thankful3', ".
"thankful4 = '$thankful4', ".
"thankful5 = '$thankful5', ".
"howwasday = '".addslashes($howwasday)."' ".
"WHERE ID = $saveid and dateofgoals = '$todaysdate'";
The single quote is not being removed out of the howwasday field ....
Help !
mlb