I have a problem regarding the Single quote in free text of the form, while saving in the db, the Insert fails but Update has no problem. Why is it so ?
e.g.
This fails if a record has a single record
$insert_games = "Insert into gameinfo " ;
$insert_games .= "Values " ;
$insert_games .= "'$new_number','$grecord[1]', " ;
$insert_games .= " '$game_record[2]','$game_record[3]') " ;
This is successful if Single or Double quotes are there in free text form.
$update_sql = " Update help_pages " ;
$update_sql .= " set help_params = '$help_params', " ;
$update_sql .= " help_group = '$help_group', " ;
$update_sql .= " help_subgroup = '$help_subgroup, " ;
$update_sql .= " help_shortdesc = '$help_shortdesc' ...
Any idea why is it so ?
Thanks in advance.
Bijal.